Import CV2 Error: Modulenotfounderror:no module named ' Cv2 '

Source: Internet
Author: User

Tensorflow,import cv2 Error:modulenotfounderror:no module named ' Cv2 '

That's how I solved it:Conda install OpenCV

Then did not report the error, but reported another mistake:importerror:/lib64/libstdc. So.6:version ' cxxabi_1.3.8 ' not found;

Baidu after said after the GCC update libstdc++.so.6 not updated, cxxabi_1.3.8 version or original, so error

Workaround:

First step: First Find/-name libstdc++.so.6*, locate all, and then find the newly installed, copy to directory

Cp/home/ai/anaconda3/pkgs/libstdcxx-ng-8.2.0-hdf63c60_1/x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++. so.6.0.25  /usr/lib64/

Step two: Back up the existing to prevent accidental

mv/usr/lib64/libstdc++.so.6/usr/lib64/libstdc++.so.6.backup.sunfei.20181013

Step three: Re-specify:

Ln-s/usr/lib64/libstdc++.so.6.0.25/usr/lib64/libstdc++.so.6

Start ok!

Import CV2 Error: Modulenotfounderror:no module named ' Cv2 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.