سلام وقتتون بخیر
من طبق روندی که سایت یادگیری عمیق بود اقدام به نصب تنسورفلو روی لینوکس برای GPU کردم .
همه مراحل در ظاهر درست پیش رفت . حالا اخر کار که ژوپیتر و نامپای رو ایمپوررت می کنه ولی برای تنسورفلو خطا می ده :
(tensorflow_vp3) dr@dr-mardani:~$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import jupyter
>>> import tensorflow
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', 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: libcudart.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 "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 60, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', 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: libcudart.so.8.0: cannot open shared object file: No such file or directory
Error importing tensorflow. Unless you are using bazel,
you should not try to import tensorflow from its source directory;
please exit the tensorflow source tree, and relaunch your python interpreter
from there.
>>>
طبق اون چیزی که توی متن گفته بودند
cudnn7
cuda9.0
ظاهرا نسخه تنسورفلو با اینا نمی خونه !!!(طبق متن سایت پیش رفتم)
می شه بفرمایید
دقیقا چه نسخه هایی از کودا و کودی ان ان و تنسورفلو با هم همخوانی دارند؟
سوالات مشابه این سوال رو مطالعه کردم و بازم نتونستم به جواب برسم
لیست رو که چک می کنم تنسورفلو برای جی پی یو نصب شده
ipykernel 5.1.0
ipython 7.1.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jedi 0.13.1
Jinja2 2.8
jsonschema 2.6.0
jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 6.0.0
jupyter-core 4.4.0
Keras-Applications 1.0.6
Keras-Preprocessing 1.0.5
kiwisolver 1.0.1
language-selector 0.1
louis 2.6.4
lxml 3.5.0
Mako 1.0.3
Markdown 3.0.1
MarkupSafe 0.23
matplotlib 3.0.1
mistune 0.8.4
nbconvert 5.4.0
nbformat 4.4.0
notebook 5.7.0
numpy 1.15.3
oauthlib 1.0.3
onboard 1.2.0
padme 1.1.1
pandocfilters 1.4.2
parso 0.3.1
pexpect 4.0.1
pickleshare 0.7.5
Pillow 3.1.2
pip 18.1
plainbox 0.25
prometheus-client 0.4.2
prompt-toolkit 2.0.6
protobuf 3.6.1
ptyprocess 0.5
pyasn1 0.1.9
pycups 1.9.73
pycurl 7.43.0
Pygments 2.2.0
pygobject 3.20.0
PyJWT 1.3.0
pyparsing 2.0.3
python-apt 1.1.0b1+ubuntu0.16.4.2
python-dateutil 2.7.5
python-debian 0.1.27
python-systemd 231
pyxdg 0.25
pyzmq 17.1.2
qtconsole 4.4.2
tensorboard 1.11.0
tensorflow-gpu 0.12.1
tensorflow-tensorboard 0.4.0
termcolor 1.1.0
terminado 0.8.1
testpath 0.4.2
tornado 5.1.1
traitlets 4.3.2
ubuntu-drivers-common 0.0.0