简体   繁体   English

安装Shapely时,“ python setup.py egg_info”失败,错误代码为1

[英]“python setup.py egg_info” failed with error code 1 when installing Shapely

When installing Shapely via PyCharm I got the following Error message: 通过PyCharm安装Shapely时,出现以下错误消息:

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

and

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

I already tried updating pip and setuptools but it still doesn't work. 我已经尝试过更新pip和setuptools,但是仍然无法正常工作。

Does anybody have something else I could try to get it running? 有人还有其他我可以尝试运行的东西吗?

Shapely isn't available through pip. 无法通过点子获得Shapely。 You need to download the Shapely Wheel here and run : 您需要在此处下载Shapely Wheel并运行:
pip install Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
(depending on the name of the package you decided to download. '37' means python 3.7 version. You can check your python version with python --version ). (取决于您决定下载的软件包的名称。“ 37”表示python 3.7版本。您可以使用python --version检查python版本)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pip安装形状给出“python setup.py egg_info”失败,错误代码1错误 - Pip install of shapely giving “python setup.py egg_info” failed with error code 1 error 安装 lshash 时“python setup.py egg_info”失败,错误代码为 1 - "python setup.py egg_info" failed with error code 1 when installing lshash 通过pip安装时,获取命令“ python setup.py egg_info”失败,错误代码为1 - Getting Command “python setup.py egg_info” failed with error code 1 when installing via pip python setup.py egg_info“失败,错误代码 - python setup.py egg_info" failed with error code Python:setup.py egg_info 失败,错误代码为 1 - Python: setup.py egg_info failed with error code 1 python setup.py egg_info失败,错误代码为1 - python setup.py egg_info failed with error code 1 python setup.py egg_info失败,错误代码为1 - python setup.py egg_info failed with error code 1 python setup.py egg_info&quot; 失败,错误代码为 1 - python setup.py egg_info" failed with error code 1 在python Annoconda“python setup.py egg_info”中安装模块失败,错误代码为1 - Installing module in python Annoconda “python setup.py egg_info” failed with error code 1 错误:“python setup.py egg_info”安装 osmnx 失败,错误代码为 1” - Error: "python setup.py egg_info" failed with error code 1" for installing osmnx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM