Closed
Description
Recently, using PyPlot resulted in the following error:
ERROR: InitError: PyError (PyImport_ImportModule
The Python package matplotlib could not be found by pyimport. Usually this means
that you did not install matplotlib in the Python version being used by PyCall.
[...]
ImportError("/usr/local/julia-1.4.0/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/python3.8/site-packages/matplotlib/ft2font.cpython-38-x86_64-linux-gnu.so)")
My system: Manjaro Linux
Julia version: both 1.3.1 and 1.4.0
It turns out to be the same error described here on discourse and temporarily solved in the same way. libstdc++ coming with Julia is outdated compared to the system one.
A workaround is to copy (or link) the system libstdc++.so.6 to the Julia folder:
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 $JULIA_HOME/lib/julia/
Metadata
Metadata
Assignees
Labels
No labels