Tag: poppler

在Python中导入osgeo库失败

我无法在我的python应用程序中导入osgeo库。 我在由以下依赖关系定义的conda环境中工作: 对于默认频道: python=3.6.0 pandas=0.19.2 scikit-learn=0.18.1 numpy=1.12.1 requests=2.14.2 pyyaml=3.12 jinja2=2.9.6 对于伪造渠道: gdal=2.2.1 用pip安装: jellyfish unidecode scikit-optimize skater==1.0.2 boto3==1.4.1 schedule==0.4.3 geopy==1.11.0 fuzzywuzzy==0.15.1 python-Levenshtein==0.12.0 我收到以下错误: from osgeo import ogr File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module> _gdal = swig_import_helper() File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper _mod = imp.load_module('_gdal', fp, pathname, description) File "/opt/conda/lib/python3.6/imp.py", line 242, in load_module return […]