🟢urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed`
# 解决 `urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed`
## 完整报错信息
```plaintext
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed解决思路
1. 查看 SSL 证书默认位置
import ssl
print(ssl.get_default_verify_paths())DefaultVerifyPaths(cafile=None, capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/home/qtt/software/anaconda/envs/mamba_torch2.0.1/ssl/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/home/qtt/software/anaconda/envs/mamba_torch2.0.1/ssl/certs')2. 下载 CA 文件
最后
Previousdocker kill permission deniedNextNotImplementedError: cannot instantiate 'PosixPath' on your system
Last updated