[英]Issue installing Python PIP package manually from Windows Store installation
[英]Issue installing shapely Python Package
我在 Windows 上運行 python 3.6 並嘗試使用
pip install shapely==1.6b2
它給了我以下錯誤
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\
我看過有關此問題的其他帖子並嘗試過:
pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools
似乎沒有任何效果,我不確定下一步該怎么做。 任何意見,將不勝感激。
謝謝
您可以嘗試使用來自這個非官方站點的二進制文件。 只需使用pip install {wheel file name}
安裝它。
Shapely‑1.5.17‑cp36‑cp36m‑win32.whl
(32 位)Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.wh
l(64 位)希望這會使安裝更容易。
我在通過pip install shapely
安裝shapely-1.5.17
遇到了類似的錯誤,安裝后使 pip install 命令起作用:
sudo apt-get install libgeos-dev
從 2020 年開始,您現在可以簡單地安裝適用於 Windows 的 Shapely:
pip install shapely
(當為 Windows 添加二進制輪時,您需要--upgrade
至少獲得 1.7.0 版)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.