成功解决(pip报错):WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host

成功解决: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 recommend you use HTTPS instead, otherwise you may silence this waming and allow it anyway with '-trusted-host mirrors .aliyun.com".

前言

本文已收录于:《告别Bug》专栏

本专栏用于记录学习和工作中遇到的各种疑难Bug问题及解决思路+解决方法,包括程序安装、运行程序过程中的问题等等,订阅专栏后如遇到其他问题可私聊帮忙解决!!!

文章目录

  • 报错问题
  • 解决思路
  • 解决方法

报错问题

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 recommend you use HTTPS instead, otherwise you may silence this waming and allow it anyway with '-trusted-host mirrors .aliyun.com".

解决思路

在这里插入图片描述

翻译:警告:存储库位于镜像。阿丽云。com不是受信任或安全的主机,正在被忽略。如果此存储库可通过HTTPS访问,我们建议您改用HTTPS,否则您可能会使此waming静音,并允许使用’-受信任的主机镜像。阿丽云。com”。

权限问题报错:需要加上加上 --trusted-host mirrors.aliyun.com后缀表示信任这个镜像网址

解决方法

pip install pymssql -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

成功解决(pip报错):WARNING: The repository located at mirrors .aliyun.com is not a trusted or secure host_第1张图片

你可能感兴趣的:(《告别Bug》,python)