ModuleNotFoundError: No module named ‘google.protobuf‘

高赞答案是:

pip uninstall protobuf
pip uninstall google
pip install google
pip install protobuf

但在conda环境中要把最后一句替换为

conda install protobuf

你可能感兴趣的:(python,开发语言)