码迷,mamicode.com
首页 > 编程语言 > 详细

python pip 更换国内安装源(windows)

时间:2018-08-08 22:55:54      阅读:349      评论:0      收藏:0      [点我收藏+]

标签:shu   替换   ref   国内源   安装源   timeout   rust   跳转   文件   

1.点击此电脑,在最上面的的文件夹窗口输入 : %APPDATA%

2.按回车跳转到以下目录,新建pip文件夹

3.创建pip.ini文件

4.打开文件夹,输入以下内容,关闭即可(注意:源镜像可替换)

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

5.国内源镜像有:

V2EX:http://pypi.v2ex.com/simple
豆瓣:http://pypi.douban.com/simple
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple
清华:https://pypi.tuna.tsinghua.edu.cn/simple

python pip 更换国内安装源(windows)

标签:shu   替换   ref   国内源   安装源   timeout   rust   跳转   文件   

原文地址:https://www.cnblogs.com/007sx/p/9446200.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!