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

Python3 encountered this problem when downloading data, and prompted urlError and SSL verification failed. The access connection is HTTPS, so the certificate verification will be performed by default. If you encounter this problem, you can even cancel the SSL verification when loading https

 import ssl
  ssl._create_default_https_context = ssl._create_unverified_context

Guess you like

Origin blog.csdn.net/u010670117/article/details/89249684