admin 管理员组

文章数量: 1184232

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

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

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

国内其他安装源

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

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

本文标签: 国内 Windows python