我一直在試圖安裝Python GDAL從源綁定使用的./configure --with-python的,但是當我學嘗試安裝GDAL Python綁定的Linux
from osgeo import gdal
我得到:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: libgdal.so.1: cannot open shared object file: No such file or directory
在我看來,這是對swig的錯誤。
您能夠運行任何的命令行(例如,gdalinfo)GDAL的事業嗎? – bogatron
是的,我可以。以某種方式使用它可能嗎? – James