how to install opencv 4.x with python 3 and opencv 3.x with python 2.7 in Linux?

asked 2020-02-24 22:40:01 -0500

redhwan gravatar image

I installed OpenCV 3.3.1 with python 2.7 (GPU), but I tried to install OpenCV4.x with Python3.

I followed this post

Output find /usr/local/lib/ -type f -name "cv2*.so" is:

/usr/local/lib/python2.7/dist-packages/cv2/cv2.so
/usr/local/lib/python2.7/site-packages/cv2.so

what is wrong?

edit retag flag offensive close merge delete