我一直在尝试使用"./configure --with-python"从源代码安装Python GDAL绑定,但是当我尝试时遇到了问题。
from osgeo import gdal
I get:
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的错误。