Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip下载速度加速 #35

Open
dalaolala opened this issue Oct 27, 2021 · 0 comments
Open

pip下载速度加速 #35

dalaolala opened this issue Oct 27, 2021 · 0 comments

Comments

@dalaolala
Copy link
Owner

任何一个信息都可以把人分为两类,知道的和不知道的。有些我们已知的信息,自己觉得很平常,却可能对另一些不知道的人来说很有用处。

比如今天要说的这个小技巧,我自己原以为不值一提,网上也很容易搜到。但当数次我把这个告诉别人后,对方惊呼“这么好用竟然之前不知道”的时候,我觉得还是有必要分享一下。哪怕再多让几个人知道,也是有好处的。

其实你只要加个参数 -i,可能就会让下载速度上升 10 倍,比如:

pip install django -i https://pypi.tuna.tsinghua.edu.cn/simple

另附常用的加速网址

清华
https://pypi.tuna.tsinghua.edu.cn/simple/

中科大
https://pypi.mirrors.ustc.edu.cn/simple/

阿里云
https://mirrors.aliyun.com/pypi/simple/

豆瓣
http://pypi.douban.com/simple/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant