windows下python osmnx安装教程_为什么我会犯这个错误?如何在Windows10上安装osmnx?...

在Windows 10环境下使用Anaconda尝试在Jupyter Notebook中安装osmnx时遇到问题,因为osmnx依赖Shapely 1.6版本,而安装过程中出现了关于Shapely的错误。具体错误信息显示为找不到'geos_c.dll'模块。这可能是因为缺少GEOS库的依赖导致的。
摘要由CSDN通过智能技术生成

我无法在jupyter笔记本中安装osmnx。shapely 1.6版出现以下问题

我可以安装shapely 1.4,但osmnx需要1.6版本

我用的命令是!pip安装osmnx

收集Shapely>=1.6(来自osmnx)

{使用^缓存的}ERROR: Command errored out with exit status 1:

command: 'c:\users\shrinath\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Shrinath\\AppData\\Local\\Temp\\pip-install-3_oopeoz\\Shapely\\setup.py'"'"'; __file__='"'"'C:\\Users\\Shrinath\\AppData\\Local\\Temp\\pip-install-3_oopeoz\\Shapely\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info

cwd: C:\Users\Shrinath\AppData\Local\Temp\pip-install-3_oopeoz\Shapely\

Complete output (9 lines):

Traceback (most recent call last):

File "", line 1, in

File "C:\Users\Shrinath\AppData\Local\Temp\pip-install-3_oopeoz\Shapely\setup.py", line 80, in

from shapely._buildcfg import geos_version_string, geos_version, \

File "C:\Users\Shrinath\AppData\Local\Temp\pip-install-3_oopeoz\Shapely\shapely\_buildcfg.py", line 200, in

lgeos = CDLL("geos_c.dll")

File "c:\users\shrinath\anaconda3\lib\ctypes\__init__.py", line 356, in __init__

self._handle = _dlopen(self._name, mode)

OSError: [WinError 126] The specified module could not be found

----------------------------------------

错误:命令出错,退出状态为1:python设置.pyegg_info检查日志以获得完整的命令输出。在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值