The correct way to install opencv, import mirror source and update pip in pycharm: first go to the correct path and then enter python -m pip install --upgrade pip

the first method:

Import Tsinghua mirror source:

https://pypi.tuna.tsinghua.edu.cn/simple

insert image description here
insert image description here
insert image description here

The second method

Ctrl + R to enter cmd
to enter the command line

enter

python -m pip install --upgrade pip

insert image description here
Install opencv again

pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

insert image description here

I will continue to update it in the future. If you like my articles, please remember to click three times in a row. Like, follow, and collect. Every like, every follow, and every collection will be the infinite motivation for me to move forward! ! ! ↖(▔▽▔)↗Thank you for your support!

Guess you like

Origin blog.csdn.net/qq_44631615/article/details/122922660