本文介紹了安裝 Shapely: OSError: [WinError 126] 找不到指定的模塊的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我必須安裝 Shapely 包(http://toblerity.org/shapely/project.html#安裝).但是當我使用時:
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:UsersAppDataLocalTemppip-build-mwuxcainShapelysetup.py", line 38, in <module>
from shapely._buildcfg import geos_version_string, geos_version,
File "C:UsersAppDataLocalTemppip-build-mwuxcainShapelyshapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos.dll")
File "C:UsersAnaconda3libctypes\__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:UsersAppDataLocalTemppip-build-mwuxcainShapely
而且,當我使用時:
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).
請幫忙.(沒用)
推薦答案
使用 http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
安裝:
python -m pip install Shapely-1.5.17-cp36-cp36m-win_amd64.whl
Ubuntu:
pip install shapely==1.6b2
這篇關(guān)于安裝 Shapely: OSError: [WinError 126] 找不到指定的模塊的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!