【运维经】第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 这个是我常用的一个源,可以根据你的需要替换成你自己的源。

发布了13 篇原创文章 · 获赞 6 · 访问量 865

猜你喜欢

转载自blog.csdn.net/xk_xx/article/details/104104629