[Solved] urllib.error.URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]

Error prompt

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>

Error reason

Global cancel certificate validation

Solution:

import ssl

ssl._create_default_https_context = ssl._create_unverified_context

Read More: