Python教程

Windows 10 python 更换国内源

本文主要是介绍Windows 10 python 更换国内源,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

打开此电脑在在地址栏输入:%APPDATA%

在搜索出的目录里新建文件夹pip,在pip文件夹下新建pip.ini文件,输入以下内容并保存

[global]
timeout = 6000
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

国内其他安装源

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

就可以永久的更改安装源了

这篇关于Windows 10 python 更换国内源的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!