[英]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.