PyPI 使用的国内源

Posted johnyang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PyPI 使用的国内源相关的知识,希望对你有一定的参考价值。

通过几次 pip 的使用,对于默认的 pip 源的速度实在无法忍受,于是便搜集了一些国内的pip源,如下:

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

使用方法很简单,直接 -i 加 url 即可。

pip install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

以上是关于PyPI 使用的国内源的主要内容,如果未能解决你的问题,请参考以下文章

PyPI 使用的国内源

python 使用国内源安装软件

Python Pypi 修改 国内源(以豆瓣源为例)

使用国内镜像源来加速python pypi包的安装

PyPI使用国内源

PyPI使用国内源