gpt4 book ai didi

python - 安装匀称: OSError: [WinError 126] The specified module could not be found

转载 作者:IT老高 更新时间:2023-10-28 21:13:05 26 4
gpt4 key购买 nike

我必须安装 Shapely 包 (http://toblerity.org/shapely/project.html#installation)。但是当我使用时:

pip install Shapely

我收到此错误:

Collecting Shapely
Using cached Shapely-1.5.17.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\AppData\Local\Temp\pip-build-mwuxcain\Shapely\setup.py", line 38, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\AppData\Local\Temp\pip-build-mwuxcain\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos.dll")
File "C:\Users\Anaconda3\lib\ctypes\__init__.py", line 344, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\AppData\Local\Temp\pip-build-mwuxcain\Shapely\

而且,当我使用时:

conda install shapely

我收到此错误:

Fetching package metadata ...........


PackageNotFoundError: Package not found: Conda could not find '

我在 Windows 10(64 位)上使用 Python 3.6.0 (Anaconda3)。

请帮忙。 (没用)

最佳答案

使用 http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely 下载 WHL 文件

安装:

python -m pip install Shapely-1.5.17-cp36-cp36m-win_amd64.whl

Ubuntu:

pip install shapely==1.6b2

关于python - 安装匀称: OSError: [WinError 126] The specified module could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44398265/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com