WARNING: Certificate did not match expected hostname: mirrors.cloud.aliyuncs.com.

简介: 我遇到了两个问题第一个:

我遇到了两个问题


第一个:


WARNING: The repository located at mirrors.cloud.aliyuncs.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 warning and allow it anyway with ‘–trusted-host mirrors.cloud.aliyuncs.com’.。。。。。。


我根据报错的信息,打开了root/.pip/pip.conf,如何在http前面加了个s,https如何保存,结果又报错了,我很无语,懒得看错误了


WARNING: Certificate did not match expected hostname: mirrors.cloud.aliyuncs.com.。。。。。。


直接去网上找吧,功夫不负有心人!!


折腾半小时,终于找到了解决办法,

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

输入pip config list




相关文章
|
12天前
|
Python
【已解决】WARNING: Ignoring invalid distribution xxx
【已解决】WARNING: Ignoring invalid distribution xxx
14 0
|
2月前
|
网络虚拟化
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being i
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being i
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being i
|
10月前
|
Shell 网络安全 Ruby
Pods hostname “upyun.gems.ruby-china.org” does not match the server certificate
Pods hostname “upyun.gems.ruby-china.org” does not match the server certificate
48 0
|
2月前
|
Kubernetes 容器
k8s-unable to connect to the server:x509:certificates signed by unknown authority......
k8s-unable to connect to the server:x509:certificates signed by unknown authority......
103 0
|
12月前
|
Docker 容器
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
2088 0
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
83 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
XML 数据格式
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
94 0
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclips
|
安全 网络安全 开发工具
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
403 0
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
|
安全 物联网
The World’s First TEE Time & Debug PP-Module Security Certificate Issued to Alibaba Cloud Link TEE
On July 12,2019, Alibaba Cloud Link TEE became the first in the world to receive the TEE time & debug PP-module security certificate (TEE Time and Rollback PP-Module and TEE Debug PP-Module).
1132 0