2017-04-01 5 views
2

Nvidia 그래픽 카드에서 전체 CUDA 및 GPU를 지원하는 Python 3.5의 경우 Ubuntu 16.04에서 Tensorflow를 설치할 때 this tutorial을 방금 따라 왔습니다. 설치가 성공적이었습니다.Tensorflow를 새로 설치 한 후 ImportError

파이썬 세션에서 Tensorflow를 가져올 수 없습니다.

[email protected]:~/Downloads/tensorflow$ python3.5 
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import tensorflow 
Traceback (most recent call last): 
    File "/home/user/Downloads/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> 
    from tensorflow.python.pywrap_tensorflow_internal import * 
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal' 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
    File "/home/user/Downloads/tensorflow/tensorflow/__init__.py", line 24, in <module> 
    from tensorflow.python import * 
    File "/home/user/Downloads/tensorflow/tensorflow/python/__init__.py", line 51, in <module> 
    from tensorflow.python import pywrap_tensorflow 
    File "/home/user/Downloads/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 52, in <module> 
    raise ImportError(msg) 
ImportError: Traceback (most recent call last): 
    File "/home/user/Downloads/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> 
    from tensorflow.python.pywrap_tensorflow_internal import * 
ImportError: No module named 'tensorflow.python.pywrap_tensorflow_internal' 


Failed to load the native TensorFlow runtime. 

See https://www.tensorflow.org/install/install_sources#common_installation_problems 

for some common reasons and solutions. Include the entire stack trace 
above this error message when asking for help. 
+0

나는 이것 (https://stackoverflow.com/questions/43577923/cannot-import-tensorflow-for-gpu-on-windows-10) 도움이되는 것을 안다. – elitecho

답변

2

내가 아주 사소하고 간과하기 쉽습니다 여기에 문제의 원인을 발견

다음은 터미널 출력됩니다. 또한 자습서에서도 언급됩니다.

Git 저장소가 저장된 모든 다운로드 된 파일이있는 폴더에서 다른 디렉토리로 이동해야합니다.

이 솔루션은 as a comment in a bug on Github입니다.

-1

Windows에서 TF1.2.0rc2 및 CUDNN 6.0을 사용하여 cudnn64_5.dll이라는 cudnn64_6.dll의 복사본을 만드는 경우 문제가 발생합니다.