error: error:0308010c:digital envelope routines::unsupported

The error “error: error:0308010c:digital envelope routines::unsupported” typically occurs when you are trying to access an HTTPS website using the Python requests library and the SSL certificate of the website is not supported by the SSL library of your Python installation. Here are the step-by-step details to resolve this issue:

Step 1: Check your Python version

Ensure that you are using the latest version of Python. You can check your Python version by running the following command in the Command Prompt or Terminal:

If you are not using the latest version, upgrade to the latest version.

Step 2: Update the requests library

Ensure that you are using the latest version of the requests library. You can upgrade to the latest version by running the following command in the Command Prompt or Terminal:

Step 3: Install the OpenSSL library

Ensure that the OpenSSL library is installed on your system. You can download and install OpenSSL from the official OpenSSL website.

Step 4: Check your SSL certificate

Ensure that the SSL certificate of the website you are trying to access is valid and supported by your SSL library. You can check the SSL certificate by visiting the website in your browser and checking the SSL certificate details. If the SSL certificate is not valid, contact the website owner to fix the issue.

Step 5: Disable SSL verification

If the SSL certificate of the website is not supported by your SSL library, you can try disabling SSL verification in your requests library. However, this is not recommended as it can compromise the security of your system. You can disable SSL verification by adding the following code before making the HTTPS request:

Note: Disabling SSL verification should only be done for testing or debugging purposes and not in production.

If none of the above steps work, you may need to update your SSL library or contact the website owner for further assistance.

Hope above all steps will solve “Error: Error:0308010c:Digital Envelope Routines::Unsupported”.

Read More

runtimeerror: couldnt install torch.