google.protobuf.... modul not found

来源:互联网 发布:手机迅雷打开php文件 编辑:程序博客网 时间:2024/06/06 06:36

caffe is using anaconda, so, make sure the PATH you are using.

cant find google.protobuf means you should install it with pip, the pip provided by the anaconda.

if "pip install protobuf" failed, with error such as permission denied, you probably should run "sudo pip install protobuf".

if you get error such as "sudo pip command not found", then you have the problem of different PATHs.

follow links to handle it:

https://stackoverflow.com/questions/257616/sudo-changes-path-why

http://unix.stackexchange.com/questions/169251/root-shell-sees-pip-but-sudo-pip-command-not-found

some key features in those links:

1. use "env" vs "sudo env" to check PATH

2. use "which pip" vs "sudo which pip" to check the pip

3. use "alias sudo='sudo env PATH=$PATH'" to force the sudo PATH to be same as PATH

I choose not to change the "~/.bashrc" file for safety consideration.

0 0
原创粉丝点击