IT/Python

python boto3 라이브러리 2.7 버전 미지원 대응 방법

반응형

boto3는 더이상 python2.7을 제공하지 않습니다.

Boto3 will no longer support Python 2.7 starting July 15, 2021

따라서 python3를 설치하여 재설치를 해야합니다.

python -m pip uninstall boto3 botocore

apt-get install python3

python3 -m pip install boto3

sys.stderr.write(f"ERROR: {exc}")

python라이브러리를 사용하기위해 python3 -m pip install boto3 와같이 pip 명령어를 사용하게 되는데요. 이때 sys.stderr.write(f"ERROR: {exc}") 에러로 명령어가 먹통이 되는 경우가 있습니다.

원인은 모르겠습니다... 아는분 있으면 댓글로 공유 좀 해주세요.

해결 방법

wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
python3 get-pip.py
반응형