【问题标题】:Installing gdal python library on windows using conda (DLL load failed)使用 conda 在 Windows 上安装 gdal python 库(DLL 加载失败)
【发布时间】:2018-11-16 16:23:52
【问题描述】:

我正在尝试使用 conde 在 Windows 中安装 gdal:

> conda install gdal

当我尝试时:

import gdal

我收到此错误。

---------------------------------------------------------------------------
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.

它没有说明它缺少什么 dll。

【问题讨论】:

    标签: python conda gdal


    【解决方案1】:

    我一直在努力让 GDAL 为 python 工作,所以我在这里发布了一个指南:https://github.com/felipunky/GISPython/blob/master/README.md 向下滚动到“安装我们将在我们的 python 脚本中使用的库”部分。

    【讨论】:

      猜你喜欢
      • 2011-08-25
      • 1970-01-01
      • 1970-01-01
      • 2016-02-08
      • 1970-01-01
      • 1970-01-01
      • 2021-07-19
      • 1970-01-01
      • 2017-10-19
      相关资源
      最近更新 更多