安装Shapely:OSError:[WinError 126]找不到指定的模块 [英] Install Shapely: OSError: [WinError 126] The specified module could not be found
本文介绍了安装Shapely:OSError:[WinError 126]找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须安装Shapely软件包( http://toblerity.org/shapely/project.html #installation ). 但是当我使用时:
I have to install Shapely package (http://toblerity.org/shapely/project.html#installation). But when I am using:
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).
I am using Python 3.6.0 (Anaconda3) on Windows 10 (64-bit).
请帮助. (无济于事)
Please help. (nothing works)
推荐答案
使用安装:
python -m pip install Shapely-1.5.17-cp36-cp36m-win_amd64.whl
Ubuntu:
pip install shapely==1.6b2
这篇关于安装Shapely:OSError:[WinError 126]找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文