[英]Installing gdal python library on windows using conda (DLL load failed)
I am trying to install gdal in windows using conde: 我正在尝试使用conde在Windows中安装gdal:
> conda install gdal
When I try: 当我尝试:
import gdal
I get this error. 我得到这个错误。
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-9-ee38efafc30b> in <module>()
----> 1 import gdal
C:\Users\milad\Anaconda2\lib\site-packages\gdal.py in <module>()
1 # import osgeo.gdal as a convenience
----> 2 from osgeo.gdal import deprecation_warn
3 deprecation_warn('gdal')
4
5 from osgeo.gdal import *
C:\Users\milad\Anaconda2\lib\site-packages\osgeo\__init__.py in <module>()
23 fp.close()
24 return _mod
---> 25 _gdal = swig_import_helper()
26 del swig_import_helper
27 else:
C:\Users\milad\Anaconda2\lib\site-packages\osgeo\__init__.py in swig_import_helper()
19 if fp is not None:
20 try:
---> 21 _mod = imp.load_module('_gdal', fp, pathname, description)
22 finally:
23 fp.close()
ImportError: DLL load failed: The specified procedure could not be found.
It does not say what dll it is missing. 它没有说它缺少什么dll。
我一直在努力使GDAL适用于python,因此我在此处发布了一个指南: https : //github.com/felipunky/GISPython/blob/master/README.md向下滚动至“安装将在python中使用的库”脚本”部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.