我正在尝试在共享群集上导入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)


而且我不是管理员。谁能帮我解决这个问题?

最佳答案

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 stdin0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 srand0000000000000000 DF *UND* 0000000000000000 GLIBC_2.6 __sched_cpucount0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.3 pthread_tryjoin_np0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 log10f0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 if_nametoindex0000000000000000 DF *UND* 0000000000000000 GLIBC_2.7 eventfd...

关于python - 在CentOS上导入mxnet时,获取:OSError:/lib64/libc.so.6:找不到版本“GLIBC_2.17”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48188739/

10-12 17:03