Python 安裝 shapely - geo 初探


直接 使用 > pip install shapely 命令操作,可能會遇到

ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-install-e6iko025\shapely\

的錯誤提示:

 

 

這種情況即使不能自動下載啦,那就下載壓縮包,直接安裝壓縮包。

訪問地址:

https://www.lfd.uci.edu/~gohlke/pythonlibs/

界面搜索 shapely,

 

 

點進去,跳轉到相應的下載包位置。(我的 python版本是 3.6 、 win 10 - 64)

 

 

一定要選好版本,如果版本不對會造成:

ERROR: **.whl is not a supported wheel on this platform. 錯誤

 

 

如果遇到 提示:

You are using pip version 10.0.1, however version 19.1.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

 

是說當前的命令版本不是最新,

那就老實的升級下命令版本:

> python -m pip install --upgrade pip

 

 

最終,安裝好 下載的 . whl 包。

 

 

引入包測試運行:

 

 

結果 當然 OK

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM