新安装的系统。也许是ssl库文件或者某些原因,主要是无法验证https证书。
具体步骤:
pip install pip-system-certs
pip install certifi
如果系统是 Linux:
export SSL_CERT_FILE=$(python3 -m certifi)
python main.py # replace with your module name
如果是 Windows:
python3 -m certifi
# 将刚才显示的模块路径填写
set SSL_CERT_FILE=xxxxxxxxxxxxxxxx
python main.py # replace with your module name