当前位置: 移动技术网 > IT编程>脚本编程>Python > pip速度太慢解决(使用清华镜像)

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

2020年07月14日  | 移动技术网IT编程  | 我要评论

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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网