1

I have Anaconda installed in my system and I recently installed OpenCV 3.0.0 using the instructions given on this page. But when I open python and type import cv2, it throws me the following error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /home/ashutosh/anaconda2/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/lib/python2.7/site-packages/cv2.so)

I dont't know why am I getting this error. I also put the PYTHONPATH in the bashrc file, sourced it but nothing happened.

2
  • sudo apt-get install libgcc. Commented Oct 20, 2017 at 14:31
  • Thanks a lot, it worked :-) Commented Oct 20, 2017 at 14:32

1 Answer 1

1

sudo apt-get install libgcc

This dependency caused the error.

Sign up to request clarification or add additional context in comments.

1 Comment

Please accept this answer, so this question does not remain unanswered.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.