參考: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__