Software⏱️ 2 min read📅 2026-05-30

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.

Quick Answer: Update Python and pip to the latest versions, then try installing again. You can download the latest version of Python from the official Python website and follow the installation instructions.

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

  1. Step 1: Open a command prompt as an administrator and run the following command: "python -m ssl_certifychains"

Method 2: Installing Certifi

  1. 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.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions