安装python包时通常使用pip install xxx 但是效率不高,下面介绍几种国内的源,安装效率提升一大截
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
在以上几个国内的源安装命令
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx
我以清华镜像为例,例如大家需要安装opencv-python这个包,只需将上面命令行中的 xxx 换成opencv-python即可
只要是源里有的包,都会很快下载成功!