![](/img/trans.png)
[英]Pip install of shapely giving “python setup.py egg_info” failed with error code 1 error
[英]“python setup.py egg_info” failed with error code 1 when installing Shapely
通過PyCharm安裝Shapely時,出現以下錯誤消息:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Anwender\AppData\Local\Temp\pip-install-h4bpp30v\Shapely\
和
C:\WINDOWS\system32>pip install Shapely
Collecting Shapely
Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.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\Anwender\AppData\Local\Temp\pip-install-h4bpp30v\Shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\Anwender\AppData\Local\Temp\pip-install-h4bpp30v\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "c:\program files (x86)\python37-32\lib\ctypes\__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Das angegebene Modul wurde nicht gefunden
我已經嘗試過更新pip和setuptools,但是仍然無法正常工作。
有人還有其他我可以嘗試運行的東西嗎?
無法通過點子獲得Shapely。 您需要在此處下載Shapely Wheel並運行:
pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
(取決於您決定下載的軟件包的名稱。“ 37”表示python 3.7版本。您可以使用python --version
檢查python版本)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.