How to fix the error "Can't connect to HTTPS URL because the SSL module is not available."?

Help to fix it, sit on Windows 10
Library:
import json
import requests as r
from bs4 import BeautifulSoup
from datetime import date
import html5lib

Error:
5e29728e24b53074353407.png
April 4th 20 at 13:28
1 answer
April 4th 20 at 13:30
Solution
SSL module is not available


https://stackoverflow.com/a/45909353/2981702

The problem is that Anaconda's Python ships with its own SSL libraries and does not use the system SSL libraries when compiling the Python ssl module. The mod_ssl module in Apache is using the system libraries.
<--------->
The only solution is to use the system version of Python and not Anaconda Python
Unless you have a specific requirement, is better to use the system version of Python and not Anaconda Python.


Run it using regular Python, not in Anaconda
https://www.python.org/downloads/windows/
I'm using VS Code run, I would love to continue using it) - Imani commented on April 4th 20 at 13:33

Find more questions by tags Python