1 Star 0 Fork 0

javychen-cn / 如何提高Windows下的pip安装下载速度

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

如何提高Windows下的pip安装下载速度

在 windows 命令提示符(默认C:\Users\Administrator>)中,

输入cd AppData\Roaming​​​,

进入此目录,在该目录下新建名为 pip 的文件夹:

C:\Users\Administrator\AppData\Roaming>mkdir pip

然后在其中新建文件 pip.ini:

C:\Users\Administrator\AppData\Roaming\pip>type nul>pip.ini

最后在文件管理器找到pip.ini用文本打开粘贴以下内容:

----------------------------------------------------

[global]

index-url = http://pypi.douban.com/simple

[install]

trusted-host=pypi.douban.com

----------------------------------------------------

*************************************************

注:以下不是windows的粘贴内容!!!

以下是linux的pip

$ vim ~/.pip/pip.conf

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]

trusted-host=mirrors.aliyun.com

linux国内源,如果windows的豆瓣源不能用,就尝试用下面的:

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

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

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

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

*************************************************

空文件

简介

Windows下pip下载速度慢解决方法 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/javychen-cn/WinPIP.git
git@gitee.com:javychen-cn/WinPIP.git
javychen-cn
WinPIP
如何提高Windows下的pip安装下载速度
master

搜索帮助