在使用python pip安装时可能存在安装失败超时的问题,在这里可以使用镜像进行安装
# 安装opencv时
pip install https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
下面是国内的多个镜像源
清华:
https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:
http://mirrors.aliyun.com/pypi/simple/
中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:
http://pypi.hustunique.com/
山东理工大学:
http://pypi.sdutlinux.org/
豆瓣:
http://pypi.douban.com/simple/