我正在尝试安装整齐但出现错误:
Collecting shapely
Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127a
bee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\iibra\AppData\Local\Temp\pip-install-effo6cnn\shapely\setup.py",
line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\iibra\AppData\Local\Temp\pip-install-effo6cnn\shapely\shapely\_b
uildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "c:\users\iibra\appdata\local\programs\python\python36\lib\ctypes\__init__
.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in
我试图从https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely安装二进制文件
我也尝试阅读此书 https://github.com/Toblerity/Shapely
我阅读了这些答案和不同的答案: Python, GEOS and Shapely on Windows 64
任何帮助将不胜感激。
感谢进阶,
答案 0 :(得分:0)
我尝试了许多解决方案,这对我来说很有效。我从https://trac.osgeo.org/osgeo4w/安装了OSGeo4W
,此后,我将OSGeo4W
的路径C:\OSGeo4W64\bin
添加到我的环境变量中。
然后,我使用pip
安装形状好的项目
pip install shapely