1.
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
最后提示错误…:
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install –upgrade pip’ command.
2.那就按照提示更新,输入
pip install --upgrade pip
但是…出现了
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 209, in main
status = self.run(options, args)
等等等等问题,这个貌似是因为安装时间过长,网上搜了一下,设置下时间就好啦。
pip --default-timeout=100 install -U pip
3.回到第一步(⊙﹏⊙)
4.因为晚上宿舍网不好,安装时会出现黄色的字提醒Network is unreachable… 安了好几次还是不行,差点跪了。只好在白天重新安装,居然成功了!!
5.测试一下,输入python
>>>import tensorflow as tf
没提示错误,安装成功啦。
6.tensorflow之路开始咯~