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)
at this line:
import matplotlib.pyplot as plt
Solutions checked (but didn't work):
I have checked that the file: libstdc++.so.6
is located at /home/wasiahmad/software/anaconda3/lib/
and I ran the following command:
$ strings ~/software/anaconda3/lib/libstdc++.so.6 | grep CXXABI_1.3.9
and it returns CXXABI_1.3.9
.
But I still can't figure out what is the problem.
Adding /home/wasiahmad/software/anaconda3/lib/
to the LD_LIBRARY_PATH
solved the problem. Thanks to Knud Larsen for his comment and the reminder that /lib64/libstdc++.so.6
currently comes first in LD_LIBRARY_PATH
.