pip3 uninstall protobuf
pip3 uninstall google
pip3 install google
pip3 install protobuf
2、没有效果的话,尝试进入dist-packages目录,刷新__init__.py文件:
cd /usr/local/lib/python3/dist-packages
touch google/__init__.py
参考资料:https://stackoverflow.com/questions/38680593/importerror-no-module-named-google-protobuf