DEV Community

loading...

Discussion on: How to set Python3 as a default python version on MacOS?

Collapse
samerrustom profile image
samerrustom

Home-Macbook-Pro:~ pcmac$ ls -l /usr/local/bin/python*
lrwxr-xr-x 1 pcmac admin 24 Aug 16 17:03 /usr/local/bin/python -> /usr/local/bin/python3.7
lrwxr-xr-x 1 pcmac admin 38 Aug 16 17:13 /usr/local/bin/python3 -> ../Cellar/python@3.8/3.8.5/bin/python3
lrwxr-xr-x 1 pcmac admin 45 Aug 16 17:13 /usr/local/bin/python3-config -> ../Cellar/python@3.8/3.8.5/bin/python3-config
lrwxr-xr-x 1 pcmac admin 40 Aug 16 17:13 /usr/local/bin/python3.8 -> ../Cellar/python@3.8/3.8.5/bin/python3.8
lrwxr-xr-x 1 pcmac admin 47 Aug 16 17:13 /usr/local/bin/python3.8-config -> ../Cellar/python@3.8/3.8.5/bin/python3.8-config
Home-Macbook-Pro:~ pcmac$ ls -l /usr/local/bin/python*
lrwxr-xr-x 1 pcmac admin 24 Aug 16 17:03 /usr/local/bin/python -> /usr/local/bin/python3.7
lrwxr-xr-x 1 pcmac admin 38 Aug 16 17:13 /usr/local/bin/python3 -> ../Cellar/python@3.8/3.8.5/bin/python3
lrwxr-xr-x 1 pcmac admin 45 Aug 16 17:13 /usr/local/bin/python3-config -> ../Cellar/python@3.8/3.8.5/bin/python3-config
lrwxr-xr-x 1 pcmac admin 40 Aug 16 17:13 /usr/local/bin/python3.8 -> ../Cellar/python@3.8/3.8.5/bin/python3.8
lrwxr-xr-x 1 pcmac admin 47 Aug 16 17:13 /usr/local/bin/python3.8-config -> ../Cellar/python@3.8/3.8.5/bin/python3.8-config
Home-Macbook-Pro:~ pcmac$ ln -s -f /usr/local/bin/python3.8 /usr/local/bin/python
Home-Macbook-Pro:~ pcmac$ python --version
Python 2.7.16

Idle is still showing the old version:
Python 2.7.16 Shell