how to fix anaconda driver issue?

2.9k Views Asked by At
libGL error: MESA-LOADER: failed to open radeonsi: /home/moritz/anaconda3/lib/python3.9/site-packages/matplotlib/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /home/moritz/anaconda3/lib/python3.9/site-packages/matplotlib/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /home/moritz/anaconda3/lib/python3.9/site-packages/matplotlib/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast

I am using a Thinkpad E14 gen 2 with a Ryzen CPU, while plotting graphs or running pygame files, this error occurs, I tried solving it by reinstalling the mesa-loader, but nothing helped.

1

There are 1 best solutions below

1
On

This worked for me when I had the exact same error.

cp /lib/libstdc++.so.6 ~/anaconda3/lib/

If that didn't work then try this:

cp "/lib/libstdc++.so.6" ~/anaconda3/lib/