최신 버전이 설치되었지만 사용되지 않음

최신 버전이 설치되었지만 사용되지 않음

나는 Debian Buster 서버에서 Python을 3.7로 업그레이드하려고 노력해 왔습니다. 입력하면 python3 --version가 반환됩니다 python 3.6.1. 그러나 실행하면 sudo apt install python3다음이 반환됩니다.

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

마찬가지로 실행하면 sudo apt-get install python3.7다음과 같은 결과가 출력됩니다.

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.7 is already the newest version (3.7.3-2).
python3.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

그러면 Python 3.7이 설치된 것처럼 보이지만 사용 중인 버전을 3.6.1로 반환하는 이유는 무엇입니까?

Python 3.7을 사용하기 위해 이 문제를 어떻게 해결할 수 있는지 아이디어가 있습니까?

관련 정보