今天pip出现了一个莫名其妙的问题

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 it is recommended to use HTTPS instead, 
otherwise you may silence this warning and allow it anyways with '--trusted-host mirrors.aliyun.com'.

这段的意思是现在已经采用了HTTPS源,否则直接报错。

解决办法:
pip.conf 加上

trusted-host = mirrors.aliyun.com

也就是说,你的pip.conf文件的最终形态:

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

这样就可以了。。

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案