1.$ python -V查看python版本:Python 2.7.6
2. 安装pip:sudo apt-get install python-pip python-dev
3. $pip -V查看pip版本:pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
4. 安装tensorflow:sudo -H pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.2.1-cp27-none-linux_x86_64.whl
5. 测试安装是否成功:
python
import tensorflow as tf
如果没报错,基本就安装成功了。
原文链接:https://www.f2er.com/ubuntu/352357.html