pip install Polygon
只能使用pip install Polygon2 或者 pip install Polygon3,也就是必须带版本号
我的只能安装Polygon3,安装完引用报错,缺少geos_c.dll
实际上是shapely需要geos
from shapely.geos import lgeos
win10系统下,
pip install shapely 成功
把shapely\DLLs下面的dll拷贝到
C:\ProgramData\Miniconda3\Library\bin
然后就解决了
shapely\DLLs路径:
D:\Users\Administrator\miniconda3\Lib\site-packages\shapely\DLLs
这次没用后面的方法了:
geos_c.dll x64版本下载:
https://www.pconlife.com/download/otherfile/32524/671d411fb923c627178c77b72bd25195/
下载后存放路径:
D:\Users\Administrator\miniconda3\Library\bin\geos_c.dll