web-dev-qa-db-fra.com

Plateforme non prise en charge pour Tensorflow sur Ubuntu 14.04.2

Tensorflow est un logiciel de calcul numérique http://tensorflow.org/get_started/os_setup.md#binary_installation

L'instruction d'installation dit simplement pip install sur Ubuntu mais j'obtiens l'erreur suivante:

$ 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.

Ma version 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

Mon noyau:

$ 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

Des indices sur la façon d'installer tensorflow dans Ubuntu ou de résoudre le problème de la plate-forme?

5
alvas

J'ai eu le même problème, car j'ai utilisé la mauvaise version de pip (python 3). Je l'ai corrigé en installant pip2.7 comme décrit ici: http://pip.readthedocs.org/fr/stable/installing/

Vous téléchargez essentiellement le fichier get-pip.py

et installez pip2.7 avec

python2.7 get-pip.py

maintenant tu peux courir

python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

vous devez être un superutilisateur et tensorflow va installer.

à votre santé

4
Christof