기술 노트/OS

python default 버전 설정

미래의억만장자 2023. 3. 16. 09:29

[root@tmplogsvr ~]# which python3

/usr/bin/python3

[root@tmplogsvr ~]# cd /usr/bin

[root@tmplogsvr bin]# ls -al | grep python

lrwxrwxrwx.  1 root root         25  3월 15 14:17 python3 -> /etc/alternatives/python3

lrwxrwxrwx.  1 root root         31  8월 26  2021 python3.6 -> /usr/libexec/platform-python3.6

lrwxrwxrwx.  1 root root         32  8월 26  2021 python3.6m -> /usr/libexec/platform-python3.6m

lrwxrwxrwx.  1 root root         24  3월 15 14:16 unversioned-python -> /etc/alternatives/python

[root@tmplogsvr bin]# ln -s ./python3 ./python

[root@tmplogsvr bin]# ls -al | grep python

lrwxrwxrwx.  1 root root          9  3월 16 09:26 python -> ./python3

lrwxrwxrwx.  1 root root         25  3월 15 14:17 python3 -> /etc/alternatives/python3

lrwxrwxrwx.  1 root root         31  8월 26  2021 python3.6 -> /usr/libexec/platform-python3.6

lrwxrwxrwx.  1 root root         32  8월 26  2021 python3.6m -> /usr/libexec/platform-python3.6m

lrwxrwxrwx.  1 root root         24  3월 15 14:16 unversioned-python -> /etc/alternatives/python

[root@tmplogsvr bin]#