1. 安装tensorflow1.14.0版本(注意不要安装GPU版本,注意一定要指定1.14.0版本号)
(1) python虚拟环境下输入:
pip install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
(2) conda环境下依次输入:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda install tensorflow==1.14.0
2. 执行如下代码:
import tensorflow as tf
print(tf.__version__) #tf版本
若显示: 1.14.0, 说明tensorflow1.14.0安装成功