繁体   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