1. 程式人生 > 實用技巧 >shapely [WinError 126]找不到指定的模組 — 解決辦法

shapely [WinError 126]找不到指定的模組 — 解決辦法

pip install shapely之後,跑程式報錯誤,import shapely 沒問題,但找不到指定的模組。和dll檔案相關。

解決辦法

將 shapely 下的 dll 檔案複製貼上到 Library/bin 下,然後就成功了。

在這裡插入圖片描述
在這裡插入圖片描述
shapely 安裝的地址可以通 pip show shapely 檢視;

下面是可以下載shapely不同版本的連結:
https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/shapely/