Tsinghua Mirror:
pip install opencv-python==3.4.2.17 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-contrib-python==3.4.2.17 -i https://pypi.tuna.tsinghua.edu.cn/simple
The installed version of opencv-python
and opencv-contrib-python
should be compatible with your Python version. A recent version compatible with Python 3.8 can be installed with the following command:
pip install opencv-python==4.5.4.58
pip install opencv-contrib-python==4.5.4.58
Note that the current latest version may have changed, you can check the latest version on opencv-python PyPI and opencv-contrib-python PyPI and update the version number as needed.