The reason is that the SSL certificate needs to be verified, but the certificate verification failed. I tried some methods on the Internet, mainly including canceling certificate verification and installing the latest certificate. I didn’t find a suitable method to install the latest certificate, so I used the method of canceling certificate verification. The specific operation is to add the following code at the location where the file needs to be downloaded:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
Read More:
- python:urllib2.URLError urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- urllib.error.URLError: <urlopen error [WinError 10060] problem solving
- URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
- seaborn.load_ Data set error urlerror: < urlopen error [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond
- After downloading ThinkPHP, report an error and download version 5.0
- Sslcertverificationerror when downloading using Python: [SSL: certificate_verify_failed] error
- An error occurred when installing pytorch version 1.7 GPU
- cifar10.load_ The solution of data () Download error
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- [idea] error occurred when using @ data annotation in Lombok: no related get / set method was found
- NPM modify download dependency (modify global download and cache path)
- FileZilla Server prompts 550 Could not open file for reading when downloading files (illustration)
- Bug: unable to download source code in idea, error cannot download sources sources not found for:XXX
- Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)
- [Python] pip.vendor.urllib3.exceptions.readtimeouterror: httpsconnectionpool protocol
- urllib3 (1.26.4) or chardet (4.0.0) doesn‘t match a supported version!
- Project read error when downloading Maven project
- Pychar has a problem downloading module [install packages failed: installing packages: error occurred. Details…]
- Error in downloading update creation environment of CONDA: collecting package metadata (current_ repodata.json): failed