ImportError: No module named caffe.proto

首先在.bashrc中添加python环境变量

export PATHONPATH=~/caffe/python:$PYTHONPATH
source ~/.bashrc

若还是存在问题,则在运行的py文件中import caffe前添加

import sys
sys.path.insert(0, '~/caffe/python') 

猜你喜欢

转载自blog.csdn.net/derteanoo/article/details/81481471
今日推荐