<p>tensorflow anaconda : Pip-Installation schlägt in neu erstellter Python 2.7-Umgebung fehl</p>

Erstellt am 15. Juli 2016  ·  3Kommentare  ·  Quelle: tensorflow/tensorflow

Umgebungsinformationen

Betriebssystem:
(tf) :~/anaconda3/bin$ cat /proc/version
Linux-Version 4.4.0-31-generisch (buildd@lgw01-16) (gcc-Version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016

Schritte zum Reproduzieren

  1. Folgen Sie https://www.tensorflow.org/versions/r0.9/get_started/os_setup.html#anaconda -installation
  2. :~/anaconda3/bin$ ./conda create --name tf python=2
    Paket-Metadaten abrufen .......
    Paketspezifikationen lösen: ..........

Paketplan für die Installation in der Umgebung /home/paddlescoot/anaconda3/envs/tf:

Die folgenden Pakete werden heruntergeladen:

| Paket | bauen |
| --- | --- |
| python-2.7.12 | 1 12,1 MB |
| setuptools-23.0.0 | py27_0 455 KB |
| Rad-0.29.0 | py27_0 81 KB |
| Pip-8.1.2 | py27_0 1,5 MB |

                                       Total:        14.1 MB

Die folgenden NEUEN Pakete werden INSTALLIERT:

openssl:    1.0.2h-1     
pip:        8.1.2-py27_0 
python:     2.7.12-1     
readline:   6.2-2        
setuptools: 23.0.0-py27_0
sqlite:     3.13.0-0     
tk:         8.5.18-0     
wheel:      0.29.0-py27_0
zlib:       1.2.8-3      

Fortfahren ([y]/n)? j

Pakete holen ...
python-2.7.12- 100%
Setuptools-23. 100%
rad-0.29.0-p 100%
pip-8.1.2-py27 100%

Pakete extrahieren ...
Pakete verknüpfen ...

:~/anaconda3/bin$ Quelle aktivieren tf
(tf) :~/anaconda3/bin$ ./conda info --envs

Conda-Umgebungen:

tf * /home/paddlescoot/anaconda3/envs/tf
root /home/paddlescoot/anaconda3

(tf) :~/anaconda3/bin$ python --version
Python 2.7.12 :: Continuum Analytics, Inc.

(tf) :~/anaconda3/bin$ export TF_BINARY_URL= https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl

(tf) :~/anaconda3/bin$ pip install --upgrade $TF_BINARY_URL
Erfassen von tensorflow==0.9.0 von https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
Herunterladen von https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl (27,6 MB)
100% |████████████████████████████████| 27,6 MB 52 kB/s
Sammeln von numpy>=1.8.2 (von tensorflow==0.9.0)
Herunterladen von numpy-1.11.1-cp27-cp27mu-manylinux1_x86_64.whl (15,3 MB)
100% |████████████████████████████████| 15,3 MB 90 kB/s
Sammeln von sechs>=1.10.0 (von Tensorflow==0.9.0)
Verwenden von zwischengespeichertem six-1.10.0-py2.py3-none-any.whl
Sammeln von protobuf==3.0.0b2 (von tensorflow==0.9.0)
Zwischengespeichertes protobuf-3.0.0b2-py2.py3-none-any.whl verwenden
Voraussetzung bereits aktuell: Rad in /home/paddlescoot/anaconda3/envs/tf/lib/python2.7/site-packages (ab tensorflow==0.9.0)
Setuptools sammeln (von protobuf==3.0.0b2->tensorflow==0.9.0)
Herunterladen von setuptools-24.0.3-py2.py3-none-any.whl (441kB)
100% |████████████████████████████████| 450 kB 1,3 MB/s
Gesammelte Pakete installieren: numpy, six, setuptools, protobuf, tensorflow
Vorhandene Installation gefunden: setuptools 23.0.0
Einträge aus nicht vorhandener Datei /home/paddlescoot/anaconda3/envs/tf/lib/python2.7/site-packages/easy-install.pth können nicht entfernt werden

(tf) :~/anaconda3/bin$python
Python 2.7.12 |Continuum Analytics, Inc.| (Standard, 2. Juli 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] auf Linux2
Geben Sie "Hilfe", "Copyright", "Credits" oder "License" ein, um weitere Informationen zu erhalten.
Anaconda wird Ihnen von Continuum Analytics zur Verfügung gestellt.
Bitte besuchen Sie: http://continuum.io/thanks und https://anaconda.org

Tensorflow als tf importieren
Traceback (letzter Aufruf zuletzt):
Datei "“, Zeile 1, ein
ImportError: Kein Modul namens tensorflow
Verlassen()

(tf) :~/anaconda3/bin$ ls -ali /home/paddlescoot/anaconda3/envs/tf/lib/python2.7/site-packages/
numpy/ pip/ README setuptools.pth six.py wheel/
numpy-1.11.1.dist-info/ pip-8.1.2-py2.7.egg-info/ setuptools-23.0.0-py2.7.egg six-1.10.0.dist-info/ six.pyc wheel- 0.29.0-py2.7.ei-info/

(tf) :~/anaconda3/bin$ ls -ali /home/paddlescoot/anaconda3/envs/tf/lib/python2.7/site-packages/
numpy/ pip/ README setuptools.pth six.py wheel/
numpy-1.11.1.dist-info/ pip-8.1.2-py2.7.egg-info/ setuptools-23.0.0-py2.7.egg six-1.10.0.dist-info/ six.pyc wheel- 0.29.0-py2.7.ei-info/

Was hast du versucht?

  1. Suche nach ähnlichen Problemen.

Hilfreichster Kommentar

Das ist kein TF-Bug, das ist eine Anakonda-Sache. Siehe https://github.com/ContinuumIO/anaconda-issues/issues/542 - dies ist einer der Gründe, warum ich Anaconda nicht mehr verwende, es spielt nicht gut mit Pip und seinen Hauptverkaufsargumenten (Paketverwaltung und Umgebungen) werden jetzt mit Python gebündelt ...

Führen Sie als Problemumgehung pip install --ignore-installed --upgrade pip setuptools aus, bevor Sie TF über Pip installieren.

Alle 3 Kommentare

Das ist kein TF-Bug, das ist eine Anakonda-Sache. Siehe https://github.com/ContinuumIO/anaconda-issues/issues/542 - dies ist einer der Gründe, warum ich Anaconda nicht mehr verwende, es spielt nicht gut mit Pip und seinen Hauptverkaufsargumenten (Paketverwaltung und Umgebungen) werden jetzt mit Python gebündelt ...

Führen Sie als Problemumgehung pip install --ignore-installed --upgrade pip setuptools aus, bevor Sie TF über Pip installieren.

Toll! Vielen Dank @ptc-swalk.

Danke

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen