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

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. 网上搜了 N N N篇文章都说自己创建pip.ini文件…

猜你喜欢

转载自blog.csdn.net/write_1m_lines/article/details/107299065