심볼릭 링크 설정

    [AWS] -bash: /home/ec2-user/.local/bin/aws: /usr/bin/python3: bad interpreter: No such file or directory

    -bash: /home/ec2-user/.local/bin/aws: /usr/bin/python3: bad interpreter: No such file or directory 다음과 같은 에러메세지는 기본 파이썬 인터프리터 경로에 문제가 생겼거나 파이썬 버전업 등의 이유로 가리키고 있는 경로에 실행파일이 존재하지 않아서 생기는 문제이다. 아래와 같이 심볼릭 링크를 생성하면 문제를 해결할 수 있다. ln -s /usr/bin/python2.7 /usr/bin/python # 심볼릭 링크 조회 ls -l /usr/bin/py* # 심볼릭 링크 삭제 rm -f /usr/bin/python2.7 # 심볼릭 링크 생성 sudo ln -s /usr/bin/python3.7 /usr/bin/python3