Set Python 3.8 as a default python version on macOS

You would get python version 2.7 or below being installed by default with macOS, you can check your default python version by following command,

python --version

To know the list of python versions available on your macOS, run the below command in terminal,

ls -ltr /usr/local/bin/python*

If you want to set Python 3.8 as the default python version on macOS,

  1. Install latest version of python using terminal command: $ brew install python
  2. Now change the default python symlink to the version you just installed.
    ln -s -f /usr/local/bin/python3.8 /usr/local/bin/python
  3. Now check the default version again using python --version command

⚡️ This should work on Big Sur, Mojave, High Sierra e.t.c


  • I am using macOS Big Sur and its working for me!
    anonymous 03 Sep 2020 05:10:54 GMT
  • Hey man! this was useful information.
    bigMac 02 Sep 2020 11:12:25 GMT
  • Further comments disabled!
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -