여러가지/ERROR & 이슈
[ERROR] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>
15June
2025. 3. 10. 19:23
[발생에러]
[ERROR] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>
[수행한 코드]
import seaborn as sns
df = sns.load_dataset('iris')
[원인]
SSL 인증서 검증 실패(SSL: CERTIFICATE_VERIFY_FAILED)
[해결방안 1] - SSL 인증서 수동 설치 및 업데이트
Step 1. 명령어 입력
본인은 jupyter에서 코드 실행중이었습니다.
따라서 jupyter가 실행되고 있는 경로에 아래의 명령어를 입력하여 SSL 인증서 수동 설치 및 업데이트를 진행했습니다.
>> /Applications/Python\ 3.12/Install\ Certificates.command
Step 2. 서버 종료 및 재시작
jupyter 서버 종료 후 재시작했습니다.
[해결방안 2] SSL 검증 임시 비활성화
import ssl
import seaborn as sns
ssl._create_default_https_context = ssl._create_unverified_context
df = sns.load_dataset('iris')