0
点赞
收藏
分享

微信扫一扫

Windows 10 python 更换国内源

624c95384278 2022-01-30 阅读 102

打开此电脑在在地址栏输入:%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

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

举报

相关推荐

0 条评论