I have installed OpenCV for python 3.8.5 - 32 bit and it worked perfectly fine. I decided to use the 64bit version of python, as my PC's system type is x64-based, but OpenCV-python does not install properly. This is the error I receive when trying to import cv2.
Command used to install Opencv -> 'pip install opencv-contrib-python'
You can make virtual environment and then install python3.8 64-bit there,and then you can install opencv-contrib for this version,
download and install virtualenv and make an virtualenv:
python3 -m venv your-env
for environment activation:
source your-env/bin/activate
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.