ImportError: Urllib3 V2.0 Only Supports OpenSSL 1.1.1+, Currently The ‘ssl’ Module Is Compiled With LibreSSL 2.8.3

The error message suggests that you have an incompatible version of OpenSSL installed.

To resolve this issue, you can try the following steps:

  1. Update the ssl module:

    $ pip install --upgrade ssl
  2. Update or reinstall urllib3:

    $ pip install --upgrade urllib3
  3. If the above steps don’t work, you may need to upgrade or reinstall OpenSSL:

    $ pip install --upgrade pyopenssl


    $ pip uninstall pyopenssl
    $ pip install pyopenssl

If all else fails, you might need to check your Python installation and ensure that it is using the correct version of OpenSSL.

About the Author Rex

I'm a passionate tech blogger with an insatiable love for programming! From my early days tinkering with code, I've delved into web dev, mobile apps, and AI. Sharing insights and tutorials with the world is my joy, connecting me to a global community of like-minded tech enthusiasts. Python holds a special place in my heart, but I embrace all challenges. Constantly learning, I attend tech conferences, contribute to open-source projects, and engage in code review sessions. My ultimate goal is to inspire the next generation of developers and contribute positively to the ever-evolving tech landscape. Let's code together!