pip更换源下载方式

1. 更换 PyPI 镜像源

您可以尝试使用一个更靠近您地理位置的 PyPI 镜像源。例如,如果您在中国,可以使用清华大学的镜像源:

例举更新,pyqt5

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

其他一些流行的镜像源包括:

  • 阿里云:https://mirrors.aliyun.com/pypi/simple/
  • 中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
  • 豆瓣(豆瓣网):https://pypi.douban.com/simple/

你可能感兴趣的:(pip)