sudo apt update
sudo apt-get install python3.7
ls -lh /usr/bin/python* # 으로 현재 설정 확인
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2
sudo update-alternatives --config python3 #2입력
sudo rm /usr/bin/python3
sudo ln -s python3.7 /usr/bin/python3
python3 -V
## ls -lh /usr/bin/python* 으로 확하여 불필요한 것 지우기
## CommandNotFound.db.creator import DbCreator 에러 발생시
sudo apt-get remove --purge python3-apt
sudo apt autoremove
sudo apt-get install python3-apt
댓글 없음:
댓글 쓰기