How to Fix: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"
pip install fails with SSL certificate verify failed error on Windows 7.
📋 Table of Contents
The 'connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)' error occurs when Python's SSL verification fails to validate the certificate of the server. This can be due to several reasons, including an outdated or corrupted certificate bundle.
🛑 Root Causes of the Error
- Outdated or corrupted certificate bundle in Python's SSL configuration.
✅ Best Solutions to Fix It
Method 1: Updating Python's SSL Configuration
- Step 1: Open a command prompt as an administrator and run the following command:
"python -m ssl_certifychains"
Method 2: Installing Certifi
- Step 1: Install the Certifi library using pip:
"pip install certifi"
✨ Wrapping Up
By following these methods, you should be able to resolve the 'connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)' error and successfully install packages using pip.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat