Search code examples
python-3.xgoogle-oauth

Python flask application ssl module not available


I created a flask app and a I have been using google auth for weeks. Today I started getting this error ImportError: Can't connect to HTTPS URL because the SSL module is not available. I am using windows 10, python 3.11


Solution

  • Had the same problem, reinstalling helped me, but first of all, try to check if it downloaded:

    import ssl
    print(ssl.OPENSSL_VERSION)
    

    Otherwise try to use OpenSSL