之前pip批量更新的时候发现有些包无法更新,而且速度也特别慢,今天尝试了下清华的镜像,速度是真快

# coding=utf-8
import pip
from subprocess import call

for dist in pip.get_installed_distributions():
call("pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade " + dist.project_name, shell=True)

相关文章:

  • 2021-04-19
  • 2022-12-23
  • 2021-08-16
  • 2021-09-14
  • 2021-09-19
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-02-09
  • 2022-12-23
相关资源
相似解决方案