2016-07-26 11 views
1

ich versuchte, zunächst über die folgende Installation tensorflow:Ungültige ELF Header tensorflow

[email protected]:~/July 2016$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl 

[email protected]:~/July 2016$ pip install --upgrade $TF_BINARY_URL 

Dann habe ich versucht mit einem (leicht modifizierte Version für Linux und tensorflow 0.9.0) Lösung von iRapha here:

[email protected]:~/July 2016$ wget https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl 

[email protected]:~/July 2016$ pip install tensorflow-0.9.0-cp27-none-linux_x86_64.whl 

Dann habe ich versucht zu testen, ob Tensorflow erfolgreich installiert wurde. Die folgende Ausgabe zeigt, dass ein Fehler "ungültiger ELF-Header" vorliegt.

[email protected]:~/July 2016$ python 
Python 2.7.12 |Anaconda 2.5.0 (64-bit)| (default, Jul 2 2016, 17:42:40) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 
>>> import tensorflow 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/export/mlrg/caugusta/anaconda2/lib/python2.7/site-packages /tensorflow/__init__.py", line 23, in <module> 
    from tensorflow.python import * 
    File "/export/mlrg/caugusta/anaconda2/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 48, in <module> 
    from tensorflow.python import pywrap_tensorflow 
    File "/export/mlrg/caugusta/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module> 
_pywrap_tensorflow = swig_import_helper() 
    File "/export/mlrg/caugusta/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper 
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) 
ImportError: /export/mlrg/caugusta/anaconda2/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header 

Ich habe überprüft here. Ich erhalte, dass ungültige ELF-Header Fehler

[email protected]:~July 2016$ pip install tensorflow 

Alles sagt, dass tensorflow erfolgreich installiert, aber wenn ich es in Python zu importieren: Auf der Grundlage dieser Antwort habe ich versucht. Weiß jemand wie ich das lösen kann?

+0

Sind Sie sicher, dass Tensorflow sogar mit 'pip' verfügbar ist? Ich kann es nicht finden mit einem 'pip Suche Tensorflow' –

+0

Das ist ein potenzielles Problem, aber ich habe versucht, die Installation von drei verschiedenen Möglichkeiten und alle Wege, sagte, dass Tensorflow erfolgreich installiert wurde. – StatsSorceress

+0

Hat die aktuelle Antwort Ihre Frage beantwortet? Hast du das jemals gelöst? – Pinocchio

Antwort

1

Dies kann passieren, wenn Sie ein Tensorflow-Paket installiert haben, das nicht mit Ihrer Plattform übereinstimmt.

Ein extremes Beispiel wäre die Installation des Mac-Plattform-Pakets (wie unten zu sehen) unter Linux.

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp35-cp35m-linux_x86_64.whl 

Stellen Sie nur sicher, dass Sie die richtige Plattform verwenden.