python install cv2 - resolved

My website is online

Recommended collection

Provide a variety of operations, there must be one suitable for you

This is the case, it just can't be installed. There is no nonsense in this article, read it carefully.

insert image description here

1. Traditional way1

(execute it once, test one by one)

Try python3 -m pip install --upgrade pip

pip install cv2

pip3 install opencv-python

domestic mirror

pip3 install opencv-python -i

pip install cv2 -i

insert image description here

2. The first stage of the ultimate solution 01

Switch python version, python3.9 does not support cv2 (python3.7 and below)

3. The second stage final method 02

install it yourself

JavaPub draw insert image description here
Wait for the download to complete, copy it to the lib directory under the python installation directory

Then, install it in cmd (first enter the lib directory and then install the file you downloaded)

pip install opencv_python‑‑cp27‑cp27m‑win_amd64.whl
  • 1

Wait for the installation to complete and verify it.

pip install numpy
  • 1

4. Ultimate solution 3

2022 0902 windows10 pro test

First make sure you have python installed, here it is installed through the Anaconda3 integrated environment.

Download address:

But I didn't download it successfully on this website. Finally, I tried to find the opencv image file on the website, and the download was successful on this website:

Domestic mirror website:

I downloaded the 64-bit version of the corresponding version:opencv_python-

Save the file to the D:\Anaconda3\Lib\site-packages folder

JavaPub draw insert image description here
Go to the Anaconda3\Lib\site-packages folder

Excuting an orderpip install opencv_python-


JavaPub draw insert image description here


insert image description here

If it is the above error, you may need to install OpenSSL.

insert image description here

keep going

Configure environment variables

Original address

Tags: python install cv2 - resolved

python ERROR solution opencv cv2 python pip python3

Related: python install cv2 - resolved