我正在尝试在共享群集上导入mxnet,但我遇到错误:
import mxnet as mx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ironfs/scratch/carlos/anaconda3/lib/python3.6/site-packages/mxnet/__init__.py", line 25, in <module>
from .base import MXNetError
File "/home/ironfs/scratch/carlos/anaconda3/lib/python3.6/site-packages/mxnet/base.py", line 96, in <module>
_LIB = _load_lib()
File "/home/ironfs/scratch/carlos/anaconda3/lib/python3.6/site-packages/mxnet/base.py", line 88, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
File "/home/ironfs/scratch/carlos/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /lib64/libc.so.6: version GLIBC_2.17' not found (required by /home/ironfs/scratch/carlos/anaconda3/lib/python3.6/site-packages/mxnet/libmxnet.so)
我不是管理员。任何人都可以帮我解决这个问题吗?
答案 0 :(得分:2)
mxnet 1.0.0的分布式版本似乎是用glibc_2.7编译的,你需要从Ieezu(http://mxnet.incubator.apache.org/install/index.html)提到的源代码编译或升级你的glibc版本。
objdump -T libmxnet.so | grep GLIBC_
...
0000000000000000 DO *UND* 0000000000000000 GLIBC_2.2.5 stdin
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 srand
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.6 __sched_cpucount
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.3 pthread_tryjoin_np
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 log10f
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 if_nametoindex
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.7 eventfd
...