【运维经】第5章——python(pip)加速

python(pip)加速

在使用pip install 的时候会很慢,而且你还是个急脾气,咋整?
pip install -h 看一下,有没有什么解决方案?

package Index Options:
  -i, --index-url <url>       Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a repository
                              compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

使用 -i 参数重新指定python package index源。

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  django

https://pypi.tuna.tsinghua.edu.cn/simple 这个是我常用的一个源,可以根据你的需要替换成你自己的源。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。