1. 程式人生 > >TensorFlow版本更新(從1.0升到1.8),查詢版本

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/