current position:Home>Could not fetch URL https://pypi.org/simple/pytest-html/: There was a problem confirming the ssl cer

Could not fetch URL https://pypi.org/simple/pytest-html/: There was a problem confirming the ssl cer

2022-04-29 15:46:01Ruizxzx

Could not fetch URL https://pypi.org/simple/pytest-html/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pytest-html/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Baidu search solutions are as follows :

It can be solved by customs clearance and source control :

1)http://mirrors.aliyun.com/pypi/simple/ Alibaba cloud
2)https://pypi.mirrors.ustc.edu.cn/simple/ University of science and technology of China
3)http://pypi.douban.com/simple/ douban
4)https://pypi.tuna.tsinghua.edu.cn/simple/ Tsinghua University
5)http://pypi.mirrors.ustc.edu.cn/simple/ University of science and technology of China

Then on requirements.txt Install the package in

pip3 install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

copyright notice
author[Ruizxzx],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291417143529.html

Random recommended