终端或命令行下输入:
Ubuntu版本
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.0-cp27-none-linux_x86_64.whl
Windows版本
pip install https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/cpu/tensorflow-1.2.0rc1-cp35-cp35m-win_amd64.whl
测试:
终端或命令行下输入:
python
然后输入:
import tensorflow as tf
tf.__version__
结果返回:
‘1.2.0’
附录:
https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/gpu/