Why “import shapely” and “import gdal” do not work together?

狂风中的少年 提交于 2021-01-28 11:13:26

问题


My code needs both of these libraries but when I import them like that:

from shapely.geometry import Point
from shapely.geometry.polygon import Polygon
import gdal

I get an error saying that gdal can not be imported. Everything works well when I run them separately. I would be thankful for any help. P.S. I am using Python 3.6

来源:https://stackoverflow.com/questions/52438313/why-import-shapely-and-import-gdal-do-not-work-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!