我一直在試圖讓張量流在我的大學集羣上運行,但沒有取得太大的成功。我猜測集羣正在運行CentOS 6,但我猜一些部分正在運行CentOS 7.無根升級glibc
由於權限問題,我安裝python軟件包時遇到了很多麻煩。我能夠通過使用virtualenv來解決這個問題,這對我想做的事情來說非常完美。
現在,我已經安裝了張量流。但是,當我嘗試將其導入到蟒蛇,我得到的錯誤:
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的升級版本,然後能夠在我的虛擬環境中使用它。這是可能的,如果是的話,我需要做些什麼?
如果我的問題沒有意義或需要更多細節,請告訴我。
您是否考慮過從系統管理員(或教師)尋求幫助? –