安装 Shapely: OSError: [WinError 126] 找不到指定的模块
- 作者: 鬼舞石崎
- 来源: 51数据库
- 2023-01-05
问题描述
我必须安装 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
推荐阅读
热点文章
Discord.py(重写)on_member_update 无法正常工作
0
Discord.py 在 vc 中获取用户分钟数
0
discord.py 重写 |为我的命令出错
0
Discord.py rewrite 如何 DM 命令?
0
播放音频时,最后一部分被切断.如何解决这个问题?(discord.py)
0
在消息删除消息 Discord.py
0
如何使 discord.py 机器人私人/直接消息不是作者的人?
0
(Discord.py) 如何获取整个嵌入内容?
0
Discord bot 尽管获得了许可,但不能提及所有人
0
Discord.py discord.NotFound 异常
0
