简体   繁体   English

导入错误:/lib64/libstdc++.so.6:找不到版本“CXXABI_1.3.9”

[英]ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found

I am getting the following error:我收到以下错误:

ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/wasiahmad/software/anaconda3/lib/python3.6/site-packages/matplotlib/_path.cpython-36m-x86_64-linux-gnu.so) ImportError: /lib64/libstdc++.so.6: 找不到版本“CXXABI_1.3.9”(/home/wasiahmad/software/anaconda3/lib/python3.6/site-packages/matplotlib/_path.cpython-36m-x86_64 需要-linux-gnu.so)

at this line:在这一行:

import matplotlib.pyplot as plt

I have visited issues reported in Github and StackOverflow and followed them but still couldn't solve the problem.访问了Github和StackOverflow中报告的问题并关注了它们,但仍然无法解决问题。

Solutions checked:检查的解决方案:

I have checked that the file: libstdc++.so.6 is located at /home/wasiahmad/software/anaconda3/lib/ and I ran the following command:我已经检查过文件: libstdc++.so.6位于/home/wasiahmad/software/anaconda3/lib/并且我运行了以下命令:

$ strings ~/software/anaconda3/lib/libstdc++.so.6 | grep CXXABI_1.3.9

and it returns CXXABI_1.3.9 .并返回CXXABI_1.3.9

But I still can't figure out what is the problem.但我仍然无法弄清楚问题出在哪里。 Any help would be appreciated.任何帮助,将不胜感激。

Adding /home/wasiahmad/software/anaconda3/lib/ to the LD_LIBRARY_PATH solved the problem./home/wasiahmad/software/anaconda3/lib/LD_LIBRARY_PATH解决了问题。 Thanks to Knud Larsen for his comment and the reminder that /lib64/libstdc++.so.6 currently comes first in LD_LIBRARY_PATH .感谢Knud Larsen的评论和提醒/lib64/libstdc++.so.6目前在LD_LIBRARY_PATH/lib64/libstdc++.so.6在第一位。

I totally agree with the previous response.我完全同意之前的回答。 more precisely typing更准确地打字

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wasiahmad/software/anaconda3/lib/

in the terminal will solve the problem在终端将解决问题

if you are in a HPC this worked for me I think:如果您在 HPC 中,这对我有用,我认为:

module load gcc/9.2.0

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Anaconda ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found - Anaconda ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found 获取 ImportError /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'CXXABI_1.3.11' not found - Getting ImportError /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'CXXABI_1.3.11' not found 导入错误:/usr/lib/aarch64-linux-gnu/libstdc++.so.6:找不到版本“GLIBCXX_3.4.30” - ImportError: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found ImportError:libstdc ++。so.6:找不到版本`GLIBCXX_3.4.20' - ImportError: libstdc++.so.6: version `GLIBCXX_3.4.20' not found /usr/lib/x86_64-linux-gnu/libstdc++.so.6: 找不到 TensorFlow 需要的版本“GLIBCXX_3.4.21” - /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found required by TensorFlow ImportError:/lib64/libc.so.6:导入张量流后找不到版本`GLIBC_2.15' - ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found after importing tensorflow /lib64/libc.so.6:在 Aws Lambda 服务器中找不到版本“GLIBC_2.22” - /lib64/libc.so.6: version `GLIBC_2.22' not found in Aws Lambda Server OpenCV - AWS Lambda - /lib64/libz.so.1:未找到版本“ZLIB_1.2.9” - OpenCV - AWS Lambda - /lib64/libz.so.1: version `ZLIB_1.2.9' not found /lib64/libc.so.6:未找到版本“GLIBC_2.14” - 使用 pyinstaller 构建应用程序时出错 - /lib64/libc.so.6: version `GLIBC_2.14' not found - error from the application build using pyinstaller 在CentOS上导入mxnet时,获取:OSError:/lib64/libc.so.6:找不到版本“ GLIBC_2.17” - when import mxnet on CentOS, get: OSError: /lib64/libc.so.6: version `GLIBC_2.17' not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM