解决:AttributeError: module 'google.protobuf.descriptor_pool' has no attribute 'Default'
Posted on 2020-03-30 17:54 muyuying 阅读(4444) 评论(0) 收藏 举报参考:https://blog.csdn.net/sparkexpert/article/details/78079683
https://www.cnblogs.com/walnuttree/p/11661190.html
发现自己的Anaconda3\Lib\site-packages文件夹下包含多个protobuf

根据参考博客并且询问了和我下了同一版本tf的同学……,我的tensorflow1.9对应的protobuf应是3.6
使用pip install protobuf下载对应版本protobuf

我并不清楚为什么install了3.7.1……但是问题解决了:
在import tensorflow as tf后:
tf.__version__
tf.__path__

浙公网安备 33010602011771号