Ich versuchte die Anaconda installation für TensorFlow auf meinem Ubuntu 12.04 LTS-System, die durchging, aber beim Importieren der Bibliothek in Python stieß ich auf einen ImportError unten gezeigt.Ich konnte Tensorflow auf Ubuntu 12.04 LTS nicht korrekt installieren oder laden mit dem Ergebnis ImportError
Ich ging durch einen solution gegeben für einen ähnlichen Thread, aber es hat nicht für mich funktioniert.
Grundsätzlich ist hier, was ich für die Installation tat
$ conda create -n tensorflow python=2.7
$ source activate tensorflow
(tensorflow)$ conda install -c conda-forge tensorflow
(tensorflow)$ source deactivate
$ source activate tensorflow
Dann aus dem virtualenv ich Python geladen und versucht tensorflow zu importieren. Was ich bekam, war der folgende Fehler:
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/anirudh/anaconda/envs/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in <module>
from tensorflow.python import *
File "/home/anirudh/anaconda/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 48, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/anirudh/anaconda/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "/home/anirudh/anaconda/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by /home/anirudh/anaconda/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)
Wie sortiere ich das?
Warum bestehen Sie auf einer vier Jahre alten OS-Version? –
Es passiert so, dass meine Computerhardware nicht für ein Software-Upgrade kompatibel ist. Ein Upgrade führt dazu, dass die Grafiktreiber beim Neustart fehlschlagen. Ich habe ein Dell Vostro 3445 Notebook. – Anirudh
Tut mir leid das zu hören. –