sudo -H pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python opencv-contrib-python
设为默认
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
升级pip
python -m pip install --upgrade pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
ERROR: scikit-image 0.17.2 has requirement imageio>=2.3.0, but you'll have imageio 2.2.0 which is incompatible.
ERROR: scikit-image 0.17.2 has requirement scipy>=1.0.1, but you'll have scipy 1.0.0 which is incompatible.
Linux:
$ pip freeze | grep scipy
Windows:
c:\> pip freeze | findstr scipy
pip install scipy==
pip install 'stevedore>=1.3.0,<1.4.0' --force-reinstall
pip install scipy==1.4.1 --force-reinstall