ModuleNotFoundError: No module named google.protobuf 亲测有效

ModuleNotFoundError: No module named google.protobuf

对于这个平常很容易产生的报错,第一感觉就是第三方库的版本不匹配问题,当然实际上也是这个问题。

然而值得注意的是:使用以下的操作竟然没有解决。而且使用搜索引擎搜出的也是这个方法:

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

仍未能够解决问题。

重点来了,使用如下的conda install竟然成功了:

conda install -c anaconda protobuf

猜你喜欢

转载自blog.csdn.net/qq_44824148/article/details/129270072
今日推荐