Could not fetch URL https://pypi.org/simple/pytest-pycodestyle/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pytest-pycodestyle/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)'))) - skipping

 

解决办法:

pip install 插件名 -i 国内镜像地址 http://pypi.douban.com/simple --trusted-host pypi.douban.com,

举例:

pip install  pytest -i  http://pypi.douban.com/simple --trusted-host pypi.douban.com

1)http://mirrors.aliyun.com/pypi/simple/ 阿里云

2)https://pypi.mirrors.ustc.edu.cn/simple/  中国科技大学

3) http://pypi.douban.com/simple/  豆瓣

4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学

5)  http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-10-27
  • 2021-05-04
  • 2022-02-07
  • 2021-05-29
  • 2021-07-02
猜你喜欢
  • 2021-04-25
  • 2022-01-12
  • 2021-10-05
  • 2021-04-01
  • 2021-08-12
  • 2021-05-05
  • 2022-12-23
相关资源
相似解决方案