[英]Cannot install shapely on VS 2017
在 VS 2017 15.6.6、Windows 7 64b 上嘗試安裝“勻稱”Python 包時,我收到此錯誤消息
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
我相信,我有和這里一樣的問題
關於該問題的公認解決方案建議運行此
python -m pip install Shapely-1.5.17-cp36-cp36m-win_amd64.whl
但是這里的那個勻稱的包裹已經變成了
Shapely, a package for creation, manipulation, and analysis of planar geometry objects based on GEOS.
Shapely‑1.6.4.post1‑cp27‑cp27m‑win32.whl
Shapely‑1.6.4.post1‑cp27‑cp27m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp34‑cp34m‑win32.whl
Shapely‑1.6.4.post1‑cp34‑cp34m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp35‑cp35m‑win32.whl
Shapely‑1.6.4.post1‑cp35‑cp35m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp36‑cp36m‑win32.whl
Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl
Shapely‑1.6.4.post1‑cp37‑cp37m‑win32.whl
Shapely‑1.6.4.post1‑cp37‑cp37m‑win_amd64.whl
問題是:
我需要在命令中使用這些字符串中的哪一個?
因為我已經點擊了
1.6.4.post1
我應該嘗試安裝舊版本,據說是Shapely-1.5.17
嗎?
我的猜測是 shapely 有問題,它僅在 conda 環境中可用,而在 PyPI 中不可用。 但是,Visual Studio 必須先了解 conda,然后才能正常安裝:當您想要的是“conda install shapely”時,Visual Studio 正在使用“pip install shapely”。 這是我解決問題的方法。
Python 2.7.x,32 位 Windows
Shapely-1.6.4.post1-cp27-cp27m-win32.whl
Python 2.7.x,64 位 Windows
Shapely-1.6.4.post1-cp27-cp27m-win_amd64.whl
Python 3.4.x,32 位 Windows
Shapely-1.6.4.post1-cp34-cp34m-win32.whl
Python 3.4.x,64 位 Windows
Shapely-1.6.4.post1-cp34-cp34m-win_amd64.whl
Python 3.5.x,32 位 Windows
Shapely-1.6.4.post1-cp35-cp35m-win32.whl
Python 3.5.x,64 位 Windows
Shapely-1.6.4.post1-cp35-cp35m-win_amd64.whl
Python 3.6.x,32 位 Windows
Shapely-1.6.4.post1-cp36-cp36m-win32.whl
Python 3.6.x,64 位 Windows
Shapely-1.6.4.post1-cp36-cp36m-win_amd64.whl
Python 3.7.x,32 位 Windows
Shapely-1.6.4.post1-cp37-cp37m-win32.whl
Python 3.7.x,64 位 Windows
Shapely-1.6.4.post1-cp37-cp37m-win_amd64.whl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.