错误信息如下:貌似是没有skimage.io模块。在编pycaffe
ImportError: Failed to import test module: test_coord_map
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
__import__(name)
File "/home/kzl/caffe/python/caffe/test/test_coord_map.py", line 6, in <module>
import caffe
File "caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "caffe/pycaffe.py", line 15, in <module>
import caffe.io
File "caffe/io.py", line 2, in <module>
import skimage.io
ImportError: No module named skimage.io
原因是少了东东:没有安装所谓的skimage.io 模块,所以可以用以下的命令来安装:
1. sudo pip install scikit-image
2.sudo apt-get install python-skimage
以上两种方式任选一个命令输入安装好这个包即可。