编辑时间:
2017-12-27 21:42:26
问题一:
$./create_data.sh Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 13, in <module> from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, ImportError: /home/cccp/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21‘ not found (required by $(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/_caffe.so) Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 13, in <module> from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, ImportError: /home/cccp/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21‘ not found (required by $(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/_caffe.so)
解决方案:
$ conda install libgcc
问题二
$ ./create_data.sh Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 2, in <module> import skimage.io ImportError: No module named skimage.io Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 2, in <module> import skimage.io ImportError: No module named skimage.io
解决方案:
$conda install -c anaconda scikit-image
问题三:
./create_data.sh Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 8, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/proto/caffe_pb2.py", line 6, in <module> from google.protobuf.internal import enum_type_wrapper ImportError: No module named google.protobuf.internal Traceback (most recent call last): File "$(HOME)/workspace/deep_learning/caffe_ssd/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/__init__.py", line 1, in <module> from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/pycaffe.py", line 15, in <module> import caffe.io File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/io.py", line 8, in <module> from caffe.proto import caffe_pb2 File "$(HOME)/workspace/deep_learning/caffe_ssd/python/caffe/proto/caffe_pb2.py", line 6, in <module> from google.protobuf.internal import enum_type_wrapper ImportError: No module named google.protobuf.internal
解决方案:
$ ${ANACONDA2_HOME}/bin/pip install protobuf