나는'm 하는 데 문제가에서 가져오기 tensorflow 에 python3:
>>> import tensorflow as tf
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/__init__.py", line 51, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
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.
내가 사용하고 Nvidia 드라이버 버전 381.09 베타 버전 375 는 이 bug:https://askubuntu.com/questions/896221/strange-artifacts-along-window-borders-after-waking-computer-from-sleep-mode?noredirect=1&lq=1
내가 설치 CUDA8.0cuDNN-v6.0:
rharish@rharish-GL552VW:~$ cd /usr/local
rharish@rharish-GL552VW:/usr/local$ ls
bin cuda etc include man share
computecpp cuda-8.0 games lib sbin src
또한,libcusolver.니다.8.0 에 존재하는/usr/local/cuda/lib64/:
안전 및 보 CUDA,cuDNN,내장 tensorflow 소스에서. 이 문제가 발생하는 이후 업데이트 Nvidia 드라이버 버전 381.09 베타 버전입니다. 모든 도움이 되나요?
해결책을 발견:
기 nvidia-381,CUDA-8.0(를 사용하 runfile)및 cuDNN6.0. 다음가는 다음에.bashrc:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/
필요에 대한 재설치. 설치nvidia-cuda-dev
:
sudo apt install nvidia-cuda-dev
설치cuDNN
(는 당신이에서 다운로드 https://developer.nvidia.com/cudnn 고),세트LD_LIBRARY_PATH
에 따라(을cuda/lib64
).
내가 직면한 이러 호환성 문제로 인해 사 Tensorflow 버전 CUDA.
나는tensorflow_gpu-1.3.0
,CUDA9
과`cuDNN7 는 호환되지 않으로 당이 https://www.tensorflow.org/install/source#tested_build_configurations
그래서 내가 제거tensorflow_gpu-1.3.0
설치tensorflow_gpu-1.5.0
고