gpt4 book ai didi

python - 在CentOS上导入mxnet时,得到: OSError:/lib64/libc. so.6:版本 `GLIBC_2.17'未找到

转载 作者:行者123 更新时间:2023-12-01 02:18:09 25 4
gpt4 key购买 nike

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

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com