TensorFlow版本更新(从1.0升到1.8),查询版本

先设置pip下载优先选择清华镜像,这样下载快很多

pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

安装命令:

对于 GPU 版本: (也可以用pip3)

pip install --upgrade tensorflow-gpu

对于 CPU 版本:

pip install --upgrade tensorflow

在anaconda里更新tensorflow gpu 到指定版本:

pip install -U tensorflow-gpu==1.4

然后用以下语句查

python

import tensorflow as tf

tf.__version__

清华大学镜像:

清华源 pip 需要的版本:https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/


 

猜你喜欢

转载自blog.csdn.net/weixin_41036461/article/details/83010793