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 '