当前位置: 首页 > news >正文

免费做旅游海报的网站门户网站

免费做旅游海报的网站,门户网站,漳州专业做网站,清除wordpress标志【Python】pip安装加速:使用国内镜像源 零、使用命令行设置 设置全局镜像源 随便使用下面任一命令即可! 阿里云: pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/豆瓣: pip config set global.in…

【Python】pip安装加速:使用国内镜像源

零、使用命令行设置

设置全局镜像源

随便使用下面任一命令即可!

阿里云:

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

豆瓣:

pip config set global.index-url https://pypi.douban.com/simple/

清华大学:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学:

pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/

遇到的问题,信任镜像源

最新版的pip要求必须使用https,如果源不是https协议的,会报如下错误:

WARNING: The repository located at … is not a trusted or secure host and is being ignored.

WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommen
d you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests                                           
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommen
d you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
WARNING: There was an error checking the latest version of pip.
解决方案一:切换为https的源(推荐)

一般在链接中把http替换成https即可,或者找对应的https源。

解决方案二:临时信任

可以在命令行后加上--trusted-host参数,例如:

pip install -i http://mirrors.aliyun.com/pypi/simple/ 依赖参数 --trusted-host mirrors.aliyun.com

壹、使用文件设置

Windows上按Windows+R键打开运行,输入%userprofile%打开个人文件夹,在个人文件夹中新建.pip目录,在目录中新建文本文档并改名为pip.conf,写入如下内容:

阿里云(http)

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

阿里云(https)

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

其他的源也是类似的,把链接改一下即可:

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

叁、参考文档

  1. 国内pip源提示“not a trusted or secure host”解决方案
  2. pip源提示“not a trusted or secure host” 解决
  3. 【Python】已完美解决:WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host
  4. pip使用国内镜像源(附加全局修改)
http://www.hengruixuexiao.com/news/12356.html

相关文章:

  • 网站推广的正确方式现在有哪些培训学校
  • 科技网站设计seo培训学院
  • 搭建asp虚拟主机网站整合网络营销
  • 视频分享网站模板项目推广计划书
  • 免费做网站页头图seo外链友情链接
  • 网站建设技术支持牛商网国际新闻报道
  • 石家庄做网站时光湖南网站建设推广
  • 怎么做外贸个人网站东莞网站建设推广品众
  • wordpress网站响应速度插件上海百度竞价托管
  • 网站备案 需要什么百度知道首页
  • 网页顶部导航栏武汉seo首页
  • 做网站需要几大模板seo专员很难吗
  • 做数学题网站seo成创网络
  • 网站系统建设与管理网站域名注册查询
  • 交通部的建设标准网站搜狗推广登录平台
  • 如何让搜索引擎快速收录网站行业门户网站推广
  • 连云港市建设局网站门户网站推广方案
  • 备案网站资料上传教程百度云建站
  • 苏州做网站优化哪家好seo工具网站
  • 用dw设计最简单的网页谈谈你对seo概念的理解
  • 网站建设的技术风险分析与规避优化网络软件
  • 广州网站优化快速获取排名企业宣传推广
  • 个人做网站设计市场营销策划方案
  • 遵义 网站建设销售系统
  • 深圳专业营销网站公司提高百度搜索排名工具
  • 山东济南网站开发网站seo关键词优化
  • wordpress自动设置特色图像长沙seo优化排名
  • wordpress启用多站点和子站独立域名绑定后设置高质量内容的重要性
  • 武汉个人做网站的电话app开发公司排名
  • 网站建设一个人东莞seo建站咨询