【发布时间】:2016-08-05 13:46:06
【问题描述】:
我在我的 Ubuntu 12.04 LTS 系统上尝试了 TensorFlow 的 Anaconda installation,它通过了,但是在 Python 中导入库时,我遇到了如下所示的 ImportError。
我查看了一个类似主题的solution,但它对我不起作用。
基本上这是我为安装所做的:
$ conda create -n tensorflow python=2.7
$ source activate tensorflow
(tensorflow)$ conda install -c conda-forge tensorflow
(tensorflow)$ source deactivate
$ source activate tensorflow
然后我从 virtualenv 中加载了 Python,并尝试导入 tensorflow。我得到的是以下错误:
>>> 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)
我该如何排序?
【问题讨论】:
-
你为什么坚持发布四年前的操作系统?
-
碰巧我的电脑硬件不兼容软件升级。升级会导致图形驱动程序在重新启动时失败。我有一台戴尔 Vostro 3445 笔记本电脑。
-
很抱歉听到这个消息。
标签: python ubuntu tensorflow anaconda