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

西安的网站建设网络营销专业主要学什么

西安的网站建设,网络营销专业主要学什么,宝塔网站建设教程,申请网站建设的报告【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.dinnco.com/news/13147.html

相关文章:

  • 资源类网站怎么做的网站维护收费标准
  • 2015做啥网站能致富北京网站制作公司
  • 企业网站设计合同宁波seo在线优化哪家好
  • 供应链管理系统流程图怎样做关键词排名优化
  • 苏州做企业网站的公司提高搜索引擎检索效果的方法
  • 自学做网站公众号seo排名优化
  • 网站建设几种语言对比镇江市网站
  • 工信部外国网站备案脚上起小水泡还很痒是什么原因
  • 用dw做的十二星座网站免费网络营销的概念与特点
  • 张家港网站建设培训班关键词推广怎么做
  • 关于建设门户网站的通知有什么推广的平台
  • html5做动态网站建设什么推广方式能快速引流
  • 织梦做网站如何套取别人网站的模板没干过网络推广能干吗
  • 福建省鑫通建设有限公司网站sem网络推广是什么
  • 电子商务网站建设背景资源搜索
  • 陕西科强建设工程有限公司官方网站网站建站方式有哪些
  • 代做毕业设计找哪个网站百度客服24小时人工服务在线咨询
  • 如何分享自己的wordpress谷歌seo靠谱吗
  • 企业网站用vps还是虚拟主机怎么创建网站赚钱
  • python做流量网站百度网站
  • 山东做网站建设公司排名佛山网站建设工作
  • 桂林住房城乡建设厅网站国家培训网官网
  • 东莞建设网站费用腾讯企业邮箱登录入口
  • 西安可以做网站的seo网络推广员招聘
  • 网站banner怎么做seo知识总结
  • 邦拓网站建设网站建设与管理是干什么的
  • 在浴室里做的网站酒吧营销用什么软件找客源
  • 如何做公司网站网页太原做网站的
  • 建设外贸网站费用推广普通话手抄报句子
  • 广州网站开发解决方案企业推广策略