Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 컨텍스트 매니져
- 파이썬
- 프롬프트 튜닝
- 인컨텍스트 러닝
- Cognitive Search
- FOR
- 아기동화
- 동화책
- 조건문
- AI 동화
- 파라미터 힌트
- Docker
- 대스크
- 반복문
- Compute
- Redshift
- Azure
- UDF
- 인자 힌트
- 제로샷
- 퓨샷
- GPT
- 도커
- Ai
- dask
- 검색
- 토끼
- Python
- 모험
- Cognitive Service
Archives
- Today
- Total
호랭이 분석가
URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 본문
반응형
데이터 분석 공부를 하면서, 연습용 예제 데이터를 다운받기 위해 코드를 실행하다 보면,
예제 데이터를 제공하는 코드를 실행하다 에러가 발생하곤 합니다.
SSL 오류가 발생했을 때, 해결 방법을 안내하고자 합니다.
# SSL 에러 발생시 해결방법
import requests
requests.packages.urllib3.disable_warnings()
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
위 코드를 실행하고, 다운로드 진행하시면 됩니다.
Comments