Python中pypi豆瓣源是不更新了吗?
一直在用 https://pypi.doubanio.com/simple 来下载,挺好用的。然而最近是不更新了吗?新版都没有?
测试 pip install sqlalchemy==1.2.2 2018 年 1 月 25 号发布,到现在豆瓣源还没,依旧是测试版
Python中pypi豆瓣源是不更新了吗?
8 回复
各位大佬用什么源?
豆瓣源(pypi.douban.com)确实已经停止维护很久了,现在基本无法使用。目前国内最常用且稳定的镜像源是清华源(https://pypi.tuna.tsinghua.edu.cn/simple)和阿里云源(https://mirrors.aliyun.com/pypi/simple/)。
配置方法(以清华源为例):
1. 临时使用(安装单个包时):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
2. 设为默认(一劳永逸):
- Windows:在用户目录(如
C:\Users\你的用户名\)下创建pip文件夹,然后在里面创建pip.ini文件,内容如下:[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple trusted-host = pypi.tuna.tsinghua.edu.cn - Linux/macOS:在用户目录下创建或修改
~/.pip/pip.conf文件,内容同上。
总结:别用豆瓣源了,换清华或阿里云。
同感,visdom 也一直没更新
大厂:
http://mirrors.163.com/
https://mirrors.aliyun.com/
高校:
https://mirrors.ustc.edu.cn/
https://mirror.tuna.tsinghua.edu.cn/
这四个源应该是国内比较可靠的开源镜像源了,而且都提供了 pypi 源。
清华源+1
说清华源的,怕是没遇到清华源崩溃的情况
清华源 速度又快很不错

