使用readthedocs时导入gdal时出错

时间:2016-05-22 05:06:39

标签: python

我得到了这个人。导入gdal的项目中的错误,同时尝试使用readthedocs:

 File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/tmp/pip-build-OdYCI1/gdal/setup.py", line 196, in finalize_options
    self.gdaldir = self.get_gdal_config('prefix')
  File "/tmp/pip-build-OdYCI1/gdal/setup.py", line 176, in get_gdal_config
    return fetch_config(option)
  File "/tmp/pip-build-OdYCI1/gdal/setup.py", line 129, in fetch_config
    raise gdal_config_error, e""")
  File "<string>", line 4, in <module>
__main__.gdal_config_error: [Errno 2] No such file or directory

----------------------------------------

命令&#34; python setup.py egg_info&#34;在/ tmp / pip-build-OdYCI1 / gdal /

中失败并显示错误代码1

我该如何解决这个问题?

0 个答案:

没有答案