美文网首页
python用pip安装第三方包慢的解决方法

python用pip安装第三方包慢的解决方法

作者: 文知道 | 来源:发表于2020-03-29 21:04 被阅读0次
  • 解决:
    pip安装第三方包慢可以通过更换源来解决。

  • 安装单个包时临时指定源

pip install 包 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
  • 修改python库默认的下载源
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

相关文章

网友评论

      本文标题:python用pip安装第三方包慢的解决方法

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