我尝试使用conda在anaconda环境中的新计算机上安装gdal但有问题。到目前为止,我所做的就是安装Anaconda for python 3.6和install gdal as described here +其他一些使用conda和pip的库。
当我尝试从" osgeo import gdal"在spyder的iPython控制台中我收到此错误:
Traceback (most recent call last):
File "<ipython-input-3-a04b80bf4e65>", line 1, in <module>
from osgeo import gdal
File "/anaconda/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/anaconda/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "/anaconda/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/anaconda/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: dlopen(/anaconda/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libicui18n.58.dylib
Referenced from: /anaconda/lib/libgdal.20.dylib
Reason: image not found
我错过了一步吗?