1

i'm facing a problem when i'm trying to run an old version python code . the problem is : ImportError: /home/gouda/anaconda3/envs/breast/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/gouda/anaconda3/envs/breast/lib/python3.6/site-packages/cv2/cv2.abi3.so) note that : i'm using ubuntu 22.04LTS with Anaconda when i searched that error i think it's related to opencv and it's version is 4.7.0

ImportError: /home/gouda/anaconda3/envs/breast/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/gouda/anaconda3/envs/breast/lib/python3.6/site-packages/cv2/cv2.abi3.so)

1 Answers1

0

You mentioned it correctly. opencv-python 4.7.0.72 supported Python versions are 3.7, 3.8, 3.9, 3.10, 3.11 whereas you have installed Python 3.6 in your system which will be suitable for opencv-python 4.6.0 as per this pypi doc.

You can also try by using below code:

sudo apt-get update
sudo apt-get install libstdc++6

and try reinstalling opencv package by specifying the version:

pip install opencv-python==4.6.0.66

Please have a look at this similar issue. Let us know if the issue still persists.

TF_Renu Patel
  • 356
  • 1
  • 4