python 安装 opencv 时
pip install opencv-python
默认从国外数据源安装,可能收到超时错误,两种解决方案可选
1 走代理
pip install opencv-python --proxy=http://127.0.0.1:10809
2 可国内镜像源
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
可用数据源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/