我必须安装 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
这篇关于安装 Shapely: OSError: [WinError 126] 找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
python:不同包下同名的两个模块和类python: Two modules and classes with the same name under different packages(python:不同包下同名的两个模块和类)
配置 Python 以使用站点包的其他位置Configuring Python to use additional locations for site-packages(配置 Python 以使用站点包的其他位置)
如何在不重复导入顶级名称的情况下构造python包How to structure python packages without repeating top level name for import(如何在不重复导入顶级名称的情况下构造python包)
在 OpenShift 上安装 python 包Install python packages on OpenShift(在 OpenShift 上安装 python 包)
如何刷新 sys.path?How to refresh sys.path?(如何刷新 sys.path?)
分发带有已编译动态共享库的 Python 包Distribute a Python package with a compiled dynamic shared library(分发带有已编译动态共享库的 Python 包)