-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommended install method fails with SSL: CERTIFICATE_VERIFY_FAILED #680
Comments
This is not an Poetry's end. You most likely have an issue with your certificates. Basically, the installer only make requests to Now since it crashes at At this point I am not sure what the solution is. Check your certificates and see if it fixes this. |
You could be right, but what makes me suspicious of the installer is the following:
|
@sdispater Just out of curiosity:
One of the reasons seems to be to allow poetry to update itself via Maybe a line about this in the readme would clarify things. |
@gonvaled There are a few reasons:
|
@gonvaled And the installer does not do anything in particular and only uses the standard library. Note that So, there was an issue when compiling your Python version with |
@sdispater - I'm afraid this is why I dislike pyenv's choice to try and compile python from source everywhere, that can be hard to get right, and someone else has normally already done it so you don't have to... |
@cjw296 it's not really a choice, official CPython does not distribute binaries for anything but macOS (and windows also I guess but pyenv doesn't really support windows). Package managers on the platforms also don't let you ask for a very specific version like "3.7.0", you just get whatever latest version they have. PyPy and Anaconda do ship binaries, and pyenv does use those. |
Why do you need very specific versions? Most OS vendors are good at backporting patches and bad at updating the version number ;-) How do I teach pyenv about what conda python versions I have installed? |
Closing old issue that likely isn't related to poetry. |
I'm having the same issue when trying to run the poetry installer. I'm not sure what else it would or even could be. I've exported |
I was able to bypass the certification by generating a new SSL context and passing it in every |
On macOS I had to create a symlink from OS certificates to python:
|
Worked for me! Thanks @unmade ! |
I installed python via homebrew (macbook M1) and had to ln -fs /etc/ssl/* /opt/homebrew/etc/openssl@1.1 You might have to change the |
what worked for me on MacOS:
|
Error
Solution windowsWhat worked for me on Windows 10 was:
|
I'm going to lock this issue as it has gotten quite noisy and everything explored in the last several years is local configuration issues and not Poetry specific. The installer originally discussed is long deprecated and the replacement is a separate project. If you have issues with TLS during install, Poetry is not in the loop. Feel free to join Discord and Discussions for assistance, but as the issue is not Poetry-specific generic resources are likely more helpful. If anyone wants to work on a FAQ for the truly common TLS issues during install, feel free to open an issue to track that ask or send a PR. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Linux Mint 19 Tara
Poetry version: not possible to install
Link of a Gist with the contents of your pyproject.toml file: no pyproject.toml
Issue
The text was updated successfully, but these errors were encountered: