2017-06-26 4 views
1

Ich bin nicht in der Lage die folgenden Fehler zu nennen tensorflow bekommenImport tensorflow Fehler für ubuntu 16.04 "Import: Kein Modul namens pywrap_tensorflow_internal"

(TF) [email protected]:~$ python 
    Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
    [GCC 5.4.0 20160609] on linux2 
    Type "help", "copyright", "credits" or "license" for more information. 
    >>> import tensorflow 
    Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "tensorflow/__init__.py", line 24, in <module> 
    from tensorflow.python import * 
    File "tensorflow/python/__init__.py", line 49, in <module> 
    from tensorflow.python import pywrap_tensorflow 
    File "tensorflow/python/pywrap_tensorflow.py", line 52, in <module> 
     raise ImportError(msg) 
    ImportError: Traceback (most recent call last): 
    File "tensorflow/python/pywrap_tensorflow.py", line 41, in <module> 
    from tensorflow.python.pywrap_tensorflow_internal import * 
    ImportError: No module named pywrap_tensorflow_internal 

    Failed to load the native TensorFlow runtime. 

Meine CUDA-Version ist

(TF) [email protected]:~$ nvcc --version 
    nvcc: NVIDIA (R) Cuda compiler driver 
    Copyright (c) 2005-2016 NVIDIA Corporation 
    Built on Tue_Jan_10_13:22:03_CST_2017 
    Cuda compilation tools, release 8.0, V8.0.61` 

Meine cuDNN Version

#define CUDNN_MAJOR  5 
    #define CUDNN_MINOR  1 
    #define CUDNN_PATCHLEVEL 10 

Kann mir jemand helfen, das Problem zu lösen?

Antwort

0

Dieses Problem wurde behoben. Der Tensorflow versuchte, Pakete von einem anderen Ort zu importieren. Ich habe Tensorflow per Befehl deinstalliert, dann alle Ordner mit Name Tensorflow gelöscht und eine neue Version neu installiert. Jetzt funktioniert es gut.