很抱歉,如果我对这个问题的描述不好,但我通常不熟悉机器学习/导入,并且不知道是什么导致了这个错误。从本质上讲,我试图运行此https://github.com/aurotripathy/ssd-spacenet/blob/ssd/spacenet/README.md。我克隆了目录,并按照自述文件进行操作。我以为我安装了所有的依赖项,但由于某种原因,我不断收到一个错误,暗示不然。这是错误:
$ ./gen-pascalvoc-format.py
Traceback (most recent call last):
File "./gen-pascalvoc-format.py", line 8, in <module>
from spaceNet import geoTools as gT
File "/home/ssd-spacenet/spacenet/utilities/python/spaceNet/geoTools.py", line 1, in <module>
from osgeo import gdal, osr, ogr
File "/home/installations/anaconda2/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/home/installations/anaconda2/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: libjpeg.so.8: cannot open shared object file: No such file or directory
__init__.py文件如下所示:
# __init__ for osgeo package.
# making the osgeo package version the same as the gdal version:
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_gdal', [dirname(__file__)])
except ImportError:
import _gdal
return _gdal
if fp is not None:
try:
_mod = imp.load_module('_gdal', fp, pathname, description)
finally:
fp.close()
return _mod
_gdal = swig_import_helper()
del swig_import_helper
else:
import _gdal
__version__ = _gdal.__version__ = _gdal.VersionInfo("RELEASE_NAME")
再次,对不起,这是一个如此糟糕的问题,但我应该从哪里开始?