35 thoughts on “How to fix: SSL: CERTIFICATE_VERIFY_FAILED Error in Python (2022)

  • ive been strugling with this issue for 2 days…THANK YOU!!!

  • Did anyone managed to run the command on windows? For me it shouts "not recognized as internal or external command"

  • Thanks this has solved my issue with langchain and pymongo when using mongosessionhistory

  • Better add the sudo before on a Mac! And update to 3.10 on september 24th of 2023! Thanks!

  • Will this work on Windows? Is there a windows equivalent?

  • Thank you so much for this… My day was ruined until l found this video… In my case, it worked when l updated the numbers to the ones on my python folder in applications /Applications/Python 3.11/Install Certificates.command.

  • my god I'm literally screaming right now! I've tried EVERYTHING, this was the only solution that actually worked for me, thank you soo much sir!!!

  • very good tutorial. it's work like charm

  • I did install certifi, and the certifi works. But when I then try to install "crepe", I get a huge error that the certificate still failed.

  • Tried different solutions in StackOverlow and this is the one that worked for me. I was also facing "Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:" if anyone also has this just add "sudo" in front of the command to give it permissions.

  • Hi Fede, what if we are working in a VENV? Is valid the same command?

Comments are closed.