Ich versuche tensorflow zu installieren und ich bin jetzt mit der folgenden Warnung fest:Warum erhalte ich einen Importfehler, wenn ich TensorFlow importiere?
[email protected]:~$ python3 -c 'import tensorflow as tf; print(tf.__version__)' # for Python 3Traceback (most recent call last):
...
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: libnvidia-fatbinaryloader.so.375.39: 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 "<string>", line 1, in <module>
...
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libnvidia-fatbinaryloader.so.375.39: 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.
Kann mir jemand sagen, wie ich es lösen kann?
Haben Sie die GPU-Version installiert? Haben Sie die erforderlichen CUDA-Abhängigkeiten installiert? – kaufmanu
@kaufmanu ja Ich habe die GPU-Version installiert, aber nein zur Installation von Grafiktreibern gesagt. Ich tat es, weil die Installation immer versagte. – user3419211
Könnten Sie Ihrem Beitrag weitere Informationen hinzufügen, wie Sie Tensorflow genau installiert haben und welche Version (z. B. ob Sie einen nächtlichen Build verwendet haben, ob Sie ihn selbst aus der Quelle erstellt haben oder ob Sie Pip usw. verwendet haben)? Haben Sie auch cuDNN und CUDA Toolkit installiert? – kaufmanu