Tensorflow 1.X 在windows上的安装
参考:https://blog.csdn.net/weixin_42326479/article/details/105539110
pip install -i https://pypi.doubanio.com/simple/ --upgrade tensorflow==1.14.0
其中1.14.0是Tensorflow的版本。这里指定了一个源。
运行 import tensorflow as tf 时出现了 “Downgrade the protobuf package to 3.20.x or lower” 的提示。卸载protobuf,然后指定安装版本:
pip uninstall protobuf
pip install -i https://pypi.doubanio.com/simple/ --upgrade protobuf==3.19.0
再运行就OK了。