Ubuntu 14.04.2 上的 Tensorflow 平台不支持

alv*_*vas 5 python c++ google software-installation pip

Tensorflow 是一个数值计算软件http://tensorflow.org/get_started/os_setup.md#binary_installation

安装说明只是pip install在 Ubuntu 上说,但我收到以下错误:

$ sudo -H pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
tensorflow-0.5.0-cp27-none-linux_x86_64.whl is not a supported wheel on this platform.
Run Code Online (Sandbox Code Playgroud)

我的 Ubuntu 版本:

alvas@ubi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty
Run Code Online (Sandbox Code Playgroud)

我的内核:

$ uname -a
Linux ubi 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

关于如何在 ubuntu 中安装 tensorflow 或解决平台问题的任何线索?

小智 4

我遇到了同样的问题,因为我使用了错误的 pip 版本(python 3)。我通过安装 pip2.7 修复了这个问题,如下所述:http ://pip.readthedocs.org/en/stable/installing/

您基本上下载了文件get-pip.py

并安装 pip2.7

python2.7 get-pip.py
Run Code Online (Sandbox Code Playgroud)

现在你可以运行了

python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Run Code Online (Sandbox Code Playgroud)

您需要成为超级用户,tensorflow 才会安装。

干杯