티스토리 뷰

certbot 설치 과정 중 pyOpenSSL의 버전이 0.14 이상이 필요하여
pip install pyOpenSSL --upgrade을 통해 업그레이드를 시도하였으나

ERROR: Cannot uninstall 'pyOpenSSL'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

의 에러가 발생하였다.

해당 패키지가 pip이 아닌 OS 패키지 매니저에 의해 설치 된 경우, 관련 파일 목록을 찾을 수 없어 위의 오류가 발생할 수 있다.

pip uninstall requests
yum reinstall python-requests

pip uninstall six
yum reinstall python-six

pip uninstall urllib3
yum reinstall python-urllib3

이후 ImportError: cannot import name ssl_match_hostname 오류가 발생한다면 아래 명령어도 수행한다.

yum reinstall python-backports-ssl_match_hostname

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크