簡體   English   中英

OSError:找不到 geos_c.dll 或加載其任何變體

[英]OSError: Could not find geos_c.dll or load any of its variants

我正在嘗試使用 shapley,並將其用於我需要的用途,我必須“從勻稱的導入幾何圖形”導入,但我收到錯誤 OSError: Could not find lib geos_c.dll

我試圖通過“pip install geos”安裝“geos”,沒有做任何事情:要求已經滿足

pip 位置: C:\\Users\\skoft\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\pip.exe

import shapely

from shapely import geometry

OSError: Could not find lib geos_c.dll or load any of its variants ['C:\\Users\\skoft\\AppData\\Local\\Programs\\Python\\Python37-32\\Library\\lib\\geos_c.dll'].

在 python 3.8.5 和 windows 10 上。我遇到了同樣的錯誤。 然后conda install為我解決了這個問題。

在 python 3.6.5 上。 和 Windows 10,通過osgeo4w項目安裝 GDAL 並將 C:\\OSGeo4W64\\bin 添加到 PATH 變量為我解決了這個問題。

我得到了同樣的錯誤。 我的import語句(從shapely.geometry進口點)成功地執行我手動下載從geo_c.dll文件后https://www.dll-files.com/geos_c.dll.html並把它放在bin文件夾“C: \\用戶....\\Anaconda3\\Library\\bin ”。

就我而言,它決定 為 Visual Studio 2015 安裝 Visual C++ ,因為在調試site-packages\\shapely\\geos.py文件時我注意到找到了 dll 但未加載。 最后檢查geos_c.dll文件依賴項,我看到它需要MSVCP140.DLL

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM