在命令行输入python;再输入import caffe时,可能会报以下错误:
can not find module skimage.io
此时只要按照以下命令操作即可:$ sudo apt-get install python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython
$ sudo apt-get update
在caffe-master目录下:$ make pycaffe
然后在命令行输入python;再输入import caffe就可以成功啦。

本文介绍了解决在Python环境中导入caffe模块时出现的错误cannot find module skimage.io的方法。通过安装一系列依赖包并更新软件源,最后编译pycaffe,可以顺利导入caffe模块。
1万+

被折叠的 条评论
为什么被折叠?



