简体   繁体   English

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

[英]Error: "python setup.py egg_info" failed with error code 1" for installing osmnx

I'm trying to install a really important python package osmnx for python 3.7.我正在尝试为 python 3.7 安装一个非常重要的 python 包 osmnx。 Below is what I got.下面是我得到的。 I searched on this for the afternoon and tried updating the setuptools but it didn't work.我搜索了这个下午并尝试更新 setuptools 但它没有用。

Microsoft Windows [Version 10.0.17134.590] (c) 2018 Microsoft Corporation. Microsoft Windows [版本 10.0.17134.590] (c) 2018 Microsoft Corporation。 All rights reserved.版权所有。

C:\\Users\\jelly>pip install osmnx Collecting osmnx Using cached https://files.pythonhosted.org/packages/94/1f/88209842ca41ef8b6a547838bb5872ca03b505a1493927fd17a98cd8e38d/osmnx-0.9-py2.py3-none-any.whl Requirement already satisfied: matplotlib>=2.2 in C:\\Users\\jelly>pip install osmnx 收集 osmnx 使用缓存https://files.pythonhosted.org/packages/94/1f/88209842ca41ef8b6a547838bb5872ca03b505a1493927fd17a98ylib2h-required17a9882827fd17a988203-required17a988288888888887fd17a982888888888884209842 >=2.2 英寸

c:\\users\\jelly\\appdata\\roaming\\python\\python37\\site-packages (from osmnx) (3.0.3) Collecting Rtree>=0.8.3 (from osmnx) Using cached https://files.pythonhosted.org/packages/33/0d/0bcb0fdd759570e85697189f675fa462131e5636482f2832288bbe4bb6f7/Rtree-0.8.3-py3-none-any.whl Requirement already satisfied: pandas>=0.23 in d:\\program files (x86)\\python37-32\\lib\\site-packages (from osmnx) (0.24.1) Requirement already satisfied: networkx>=2.2 in d:\\program files (x86)\\python37-32\\lib\\site-packages (from osmnx) (2.2) Collecting geopandas>=0.4 (from osmnx) Using cached https://files.pythonhosted.org/packages/f0/5d/916b7268ef551fa9647ce12220e9a68006374f1ce5b0ddaf1cd0df2880b7/geopandas-0.4.1-py2.py3-none-any.whl Requirement already satisfied: requests>=2.21 in d:\\program files (x86)\\python37-32\\lib\\site-packages (from osmnx) (2.21.0) Collecting Shapely>=1.6 (from osmnx) Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4 c:\\users\\jelly\\appdata\\roaming\\python\\python37\\site-packages(来自 osmnx)(3.0.3)收集 Rtree>=0.8.3(来自 osmnx)使用缓存的https://files.pythonhosted.org/包/33/0d/0bcb0fdd759570e85697189f675fa462131e5636482f2832288bbe4bb6f7/Rtree-0.8.3-py3-none-any.whl要求已经满足:pandas\\pythonpackages\\x76323program files\\pythonlib:0. osmnx) (0.24.1) 要求已经满足:networkx>=2.2 in d:\\program files (x86)\\python37-32\\lib\\site-packages (from osmnx) (2.2) Collecting geopandas>=0.4 (from osmnx)使用缓存的https://files.pythonhosted.org/packages/f0/5d/916b7268ef551fa9647ce12220e9a68006374f1ce5b0ddaf1cd0df2880b7/geopandas-0.4.1-py2.satisfied 中的文件\\nonement1wh = Requirement2: x86)\\python37-32\\lib\\site-packages(来自 osmnx)(2.21.0)收集 Shapely>=1.6(来自 osmnx)使用缓存的https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127c93e28c93e2e28c8e28cee26e28c8e28c9e28c86e28c98c86e28c86c86c8637-32 Shapely-1.6.4 .post2.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install-2g0vnj5r\\Shapely\\setup.py", line 80, in from shapely._buildcfg import geos_version_string, geos_version, \\ File "C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install-2g0vnj5r\\Shapely\\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "d:\\program files (x86)\\python37-32\\lib\\ctypes__init__.py", line 356, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found .post2.tar.gz命令 python setup.py egg_info 的完整输出:回溯(最近一次调用最后一次):文件“”,第 1 行,在文件“C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install”中-2g0vnj5r\\Shapely\\setup.py", line 80, in from shapely._buildcfg import geos_version_string, geos_version, \\ File "C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install-2g0vnj5r\\Shapely\\shapely_buildcfg.py ",第 200 行,在 lgeos = CDLL("geos_c.dll") 文件 "d:\\program files (x86)\\python37-32\\lib\\ctypes__init__.py",第 356 行,在init self._handle = _dlopen(self ._name, mode) OSError: [WinError 126] 找不到指定的模块

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install-2g0vnj5r\\Shapely\\命令“python setup.py egg_info”在 C:\\Users\\jelly\\AppData\\Local\\Temp\\pip-install-2g0vnj5r\\Shapely\\ 中失败,错误代码为 1

The OSMnx documentation recommends installing with conda. OSMnx 文档建议使用conda 进行安装。 If you prefer to use pip, you need to make sure you install all the C extension dependencies on your system first (which is really difficult and time consuming on windows; for example the error you're getting says you haven't installed the geos dependency).如果您更喜欢使用 pip,则需要确保首先在系统上安装所有 C 扩展依赖项(这在 Windows 上非常困难且耗时;例如,您收到的错误表明您尚未安装 geos依赖)。 I recommend using conda to install it like:我建议使用 conda 来安装它,例如:

conda config --prepend channels conda-forge
conda create -n ox --strict-channel-priority osmnx

Please see the final solution here for any other osmnx users.请在此处查看任何其他 osmnx 用户的最终解决方案。 A million thanks to Professor Boeing.一百万感谢波音教授。 https://github.com/conda-forge/osmnx-feedstock/issues/42 https://github.com/conda-forge/osmnx-feedstock/issues/42

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

相关问题 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" 失败,错误代码为 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 "pip install matplotlib":""python setup.py egg_info" failed with error code 1" 安装 matplotlib 时 - "pip install matplotlib":"“python setup.py egg_info” failed with error code 1" while installing matplotlib 安装 lshash 时“python setup.py egg_info”失败,错误代码为 1 - "python setup.py egg_info" failed with error code 1 when installing lshash 安装 pyspider -“python setup.py egg_info”失败,错误代码为 1 - Installing pyspider - "python setup.py egg_info" failed with error code 1 使用pip安装pygame:命令“python setup.py egg_info”失败,错误代码为1 - Installing pygame with pip: Command “python setup.py egg_info” failed with error code 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM