python 包国内源快速安装

每次python使用pip命令直接安装第三方包时,默认的源都是国外的,所以速度很慢,所以使用国内源可以大大提高下载速度。

一 选择国内镜像源

清华: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/

二 安装方法

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Pillow(包名)

--timeout设置链接时常,一般下载国外源很慢的时候,设置一下

 

posted @ 2020-10-25 19:40  过去围观  阅读(1204)  评论(0)    收藏  举报