caffe安装编译问题-ImportError: No module named caffe
原创
©著作权归作者所有:来自51CTO博客作者mb62c788fd198da的原创作品,请联系作者获取转载授权,否则将追究法律责任
问题描述
~/Downloads/caffe$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named caffe
错误原因
主要是caffe中Python的配置路径有问题;
解决方法
~/Downloads/caffe$ sudo echo export PYTHONPATH="/home/xxx//Downloads/caffe/python"
特别注意配置路径更改为系统对应的路径;
完