인프런 커뮤니티 질문&답변

jd님의 프로필 이미지
jd

작성한 질문수

[개정판] 파이썬 머신러닝 완벽 가이드

분류(Classification) 개요와 결정트리(Decision Tree) 소개

smote 설치 오류 (과거 등록된 답변대로 실행시 설치 불가)

해결된 질문

작성

·

654

0

imblearn 설치를 위해 과거 2021년3월 답변 내용 참고하여 실행했는데 설치가 안되어 문의드립니다.
  • 과거 게시판 내용 참고
    • https://www.inflearn.com/questions/178321
  • 실행한 내용
    • pip install scikit-learn==0.23.1
      pip install imbalanced-learn==0.7.0
  • 현재 sk-learn 버전
    • 1.0.2
  • 오류 메시지
    • {(base) C:\Windows\system32>pip install scikit-learn==0.23.1 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/scikit-learn/ Could not fetch URL https://pypi.org/simple/scikit-learn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/scikit-learn/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement scikit-learn==0.23.1 (from versions: none) ERROR: No matching distribution found for scikit-learn==0.23.1 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping }
    • {(base) C:\Windows\system32>pip install imbalanced-learn==0.7.0 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /simple/imbalanced-learn/ Could not fetch URL https://pypi.org/simple/imbalanced-learn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/imbalanced-learn/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement imbalanced-learn==0.7.0 (from versions: none) ERROR: No matching distribution found for imbalanced-learn==0.7.0 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) - skipping}

답변 2

0

jd님의 프로필 이미지
jd
질문자

설치할 때 '--trusted-host pypi.org' 옵션으로 잘 설치되었습니다. 감사합니다!

권 철민님의 프로필 이미지
권 철민
지식공유자

해결이 되었다니 다행입니다.

0

권 철민님의 프로필 이미지
권 철민
지식공유자

안녕하십니까, 

현재 사이킷런 버전 1.0.2 면 굳이 사이킷런을 Downgrade하실 필요가 없습니다. 

해당 답변은 2021년 3월 기준이므로 개정판 강의 이전 답변입니다. 

 분류 실습 2: 신용카드 사기 예측 실습 - 05 강의 내용을 확인해 주시면 됩니다. 

감사합니다.

jd님의 프로필 이미지
jd

작성한 질문수

질문하기