首先,先安装pip
输入 sudo apt-get install python-pip;
接下来进入清华大学镜像网 https://mirrors.tuna.tsinghua.edu.cn/
选择红色这一栏,tensorflow,然后点击蓝色框的那个问号。
pip install \ -i https://pypi.tuna.tsinghua.edu.cn/simple/ \ https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/tensorflow-1.7.0-cp27-none-linux_x86_64.whl
直接复制到Linux 终端里下载就好
lym@ubuntu:~$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'1.7.0'
>>>
OK了,有版本号显示