ImportError: No module named google.protobuf.internal

来源:互联网 发布:数据库管理系统access 编辑:程序博客网 时间:2024/06/05 18:40

ImportError: No module named google.protobuf.internal

我是查了好多,也试了好多才解决的。。
因为变量环境中有两个python路径。
1,anaconda中python
2,python中安装的protobuf
输入以下命令:
$ sudo pip install protobuf

$ sudo /home/你服务器的名字/anaconda2/bin/pip install protobuf

在python命令环境下输入import caffe
就好了,哈哈

1 0
原创粉丝点击