pip速度太慢解决(使用清华镜像)

2022-08-04,,,,

python的包管理工具pip速度太慢,经常下载时报错,可以使用清华镜像代替默认下载源。下面两种方法任何电脑都可以使用,演示电脑为Windows 10 版本1909

临时方法

使用pip下载时,临时使用镜像(命令行):

pip install <包名称> -i https://pypi.tuna.tsinghua.edu.cn/simple

永久方法

打开命令行,执行:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

1.1MB/s 2.2MB/s 6.8MB/s

P. S. 网上搜了NN篇文章都说自己创建pip.ini文件…

本文地址:https://blog.csdn.net/write_1m_lines/article/details/107299065

《pip速度太慢解决(使用清华镜像).doc》

下载本文的Word格式文档,以方便收藏与打印。