기계는 거짓말하지 않는다

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 오류 본문

Python

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' 오류

KillinTime 2024. 1. 27. 00:16

Python에서 X509_V_FLAG_CB_ISSUER_CHECK 오류를 보는 경우에 해결법이다.

pip 업그레이드 후 PyOpenSSL을 최신 버전으로 업그레이드한다.

# python3 예시
python3 -m pip install pip --upgrade
pip3 install pyopenssl --upgrade

그래도 해결되지 않는다면 python3-pip 삭제 후 재설치 한다.

# 차례대로 실행. pip는 맞는 버전을 wget 해서 가져온다.
sudo apt remove python3-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py

sudo apt install python3-pip
pip install pyopenssl --upgrade
Comments