pip使用国内镜像源

常用国内镜像:
(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/
方法一:临时使用
加参数-i和镜像地址
例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scrapy
方法二:永久修改
linux:
修改:pip.conf没有创建一个文件夹及文件。文件夹要加".",表示是隐藏文件夹
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
windows:
直接在用户目录中创建一个pip目录,如:c:\user\xx\pip,然后新建文件pip.ini,内容:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn

创新互联是一家企业级云计算解决方案提供商,超15年IDC数据中心运营经验。主营GPU显卡服务器,站群服务器,绵阳服务器托管,海外高防服务器,机柜大带宽、租用·托管,动态拨号VPS,海外云手机,海外云服务器,海外服务器租用托管等。


网站题目:pip使用国内镜像源
网页路径:http://bzwzjz.com/article/picdgd.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: LED网站设计方案 成都商城网站制作 成都响应式网站建设 成都响应式网站建设 重庆企业网站建设 手机网站制作设计 专业网站建设 成都网站制作公司 成都企业网站设计 成都网站制作 高端定制网站设计 成都网站建设 成都模版网站建设 成都网站制作 成都网站建设 手机网站建设 企业网站制作 网站建设开发 成都网站制作 手机网站设计 成都商城网站建设 四川成都网站设计