- 1 year ago
poetry installation on windows: ssl.SSLCertVerificationError ssl certificate verify failed
Comment
1 / 1
If you're encountering an SSL certificate verification error while installing Poetry on Windows, it could be because the SSL certificate verification process is failing due to missing or outdated certificates on your system.
To fix this issue, you can try the following steps:
Update the certificates on your system:
csspython -m pip install --upgrade certifi
Set the SSL_CERT_FILE environment variable to the path of the ca-certificates.crt file:
vbnetset SSL_CERT_FILE=C:\path\to\ca-certificates.crt
You can obtain the path to the ca-certificates.crt file by running the following command:
scsspython -c "import certifi; print(certifi.where())"
Try installing Poetry again:
python -m pip install poetry
By updating your certificates and setting the SSL_CERT_FILE environment variable, you should be able to resolve the SSL certificate verification error and install Poetry on Windows successfully.