【发布时间】:2017-07-29 19:39:47
【问题描述】:
我一直试图让张量流在我大学的集群上运行,但没有取得多大成功。我推测集群运行的是 CentOS 6,虽然我猜有些部分运行的是 CentOS 7。
由于权限问题,我在安装 python 包时遇到了很多麻烦。我能够通过使用 virtualenv 来解决这个问题,结果证明它非常适合我想做的事情。
现在,我安装了张量流。但是,当我尝试将其导入 python 时,我得到了错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/ugrad/marsden/virt_env/tensorflow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
从最后一行,我推测 CentOS 的 GLIBC 版本太旧了。堆栈交换上有很多关于升级 GLIBC 的内容,但我们又遇到了权限问题。
我想要的是在单独的目录中安装或编译 GLIBC 的升级版本,然后能够在我的虚拟环境中使用它。这可能吗?如果可以,我需要做什么?
如果我的问题没有意义或需要更多详细信息,请告诉我。
【问题讨论】:
-
您是否考虑向系统管理员(或老师)寻求帮助?
标签: linux python-3.x tensorflow centos virtualenv