google.protobuf.... modul not found

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.

你可能感兴趣的:(深度学习)