转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/83181620
本文出自【我是干勾鱼的博客】
1 安装pip
sudo apt-get install python-pip python-dev
2 按照TensorFlow
Ubuntu/Linux 64-bit,Python 2.7环境:
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
Ubuntu/Linux 64-bit,Python 3.4环境:
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl
也可以:
pip install tensorflow
或者:
pip install tensorflow-gpu=1.4.0
这里指定了要下载的适合在GPU上运行的TensorFlow的版本。
3 测试
首先进入python,输入:
python
进入python之后,输入命令:
import tensorflow as tf
如果不报错,说明安装成功!