kali系统下 python 安装包报错 unknown type [0x13] section `.relr.dyn‘ 解决

错误日志

      /home/user1/miniconda3/compiler_compat/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
      /home/user1/miniconda3/compiler_compat/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
      /home/user1/miniconda3/compiler_compat/ld: cannot find /lib/x86_64-linux-gnu/libc.so.6
      /home/user1/miniconda3/compiler_compat/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
      /home/user1/miniconda3/compiler_compat/ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
      /home/user1/miniconda3/compiler_compat/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
      /home/user1/miniconda3/compiler_compat/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
      /home/user1/miniconda3/compiler_compat/ld: cannot find /lib64/ld-linux-x86-64.so.2
      /home/user1/miniconda3/compiler_compat/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
      /home/user1/miniconda3/compiler_compat/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
      collect2: error: ld returned 1 exit status
      error: command '/usr/bin/gcc' failed with exit code 1

报错原因:
conda 内置的 ld 程序与系统的lib包不兼容。

解决方法:
删除 conda 的 ld 程序即可

rm /home/user1/miniconda3/compiler_compat/ld

解决方法来源
https://github.com/ninia/jep/issues/446

你可能感兴趣的:(python,linux,kali)