ModuleNotFoundError: No module named 'google' problem solution

  Recently, when compiling caffe, I have been troubled by the problem of ModuleNotFoundError: No module named 'google'. The compilation environment is ubuntu18.04+anconda3+python3.6. I have tried various methods, such as: pip install protobuf, and all prompt this package Information such as installation has been installed, but after a closer look, the displayed path is /usr/bin/python3, and the python environment variable I set is /home/xxx/anconda3, so I went to check this path, and there is indeed no such package, so I tried it with conda install protobuf , and finally got it done. (Note: Some environments may need to add sudo before the command)

Guess you like

Origin blog.csdn.net/zhuquanfu/article/details/105445065