美文网首页
【运维经】第5章——python(pip)加速

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

作者: 夏洛的克 | 来源:发表于2020-01-24 16:27 被阅读0次

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

    相关文章

      网友评论

          本文标题:【运维经】第5章——python(pip)加速

          本文链接:https://www.haomeiwen.com/subject/djgcthtx.html