caffe安装编译问题-ImportError: No module named skimage.io

时间:2022-05-16 06:57:12

问题描述

>>> import caffe
Traceback (most recent call last):
File "<stdin>", line , in <module>
File "/home/xxx/Downloads/caffe/python/caffe/__init__.py", line , in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/xxx/Downloads/caffe/python/caffe/pycaffe.py", line , in <module>
import caffe.io
File "/home/zrj/Downloads/caffe/python/caffe/io.py", line , in <module>
import skimage.io
ImportError: No module named skimage.io

解决方法

~/Downloads/caffe$ sudo apt install python-pip
~/Downloads/caffe$ pip install -U scikit-image

参考

1.caffe安装详细步骤