欢迎光临散文网 会员登陆 & 注册

解决pip下载过慢、python更换pip镜像源

2022-12-01 04:23 作者:佛系的工具人  | 我要投稿

pip下载经常的443、reading time out 卡死,折腾我们的生命非常的不友好。

1.临时换源:

复制代码

#清华源

pip3 install markdown -i https://pypi.tuna.tsinghua.edu.cn/simple

阿里源

pip3 install markdown -i https://mirrors.aliyun.com/pypi/simple/

腾讯源

pip3 install markdown -i http://mirrors.cloud.tencent.com/pypi/simple

豆瓣源

pip3 install markdown -i http://pypi.douban.com/simple/

2.永久换源:

清华源

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

阿里源

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

腾讯源

pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple

豆瓣源

pip config set global.index-url http://pypi.douban.com/simple/

换回默认源

pip config unset global.index-url



解决pip下载过慢、python更换pip镜像源的评论 (共 条)

分享到微博请遵守国家法律