我正在尝试使用shapely.geometry,但它似乎在模块中丢失了。
这是可行的:
import shapely但这失败了:
from shapely import geometry特别是,当我尝试使用shapely.geometry时,它失败了,并显示以下消息:
AttributeError: module 'shapely' has no attribute 'geometry'
有人知道为什么geometry失踪了吗?manual说它应该存在(我正在测试的项目假设它存在)。
我在Windows10上使用Shapely版本1.7.1和Python 3.6.5。
发布于 2020-10-27 08:49:05
我使用.whl文件进行了整形下载,但没有出现问题。
首先从https://pypi.org/project/Shapely/#files下载
然后使用pip uninstall shapely卸载shapely并使用pip install FULL_PATH_OF_WHL_FILE重新安装
https://stackoverflow.com/questions/64546868
复制相似问题