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,
- Install latest version of python using terminal command: $ brew install python
- Now change the default python symlink to the version you just installed.
ln -s -f /usr/local/bin/python3.8 /usr/local/bin/python
- Now check the default version again using python --version command
⚡️ This should work on Big Sur, Mojave, High Sierra e.t.c
Comments:
- 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!
More Posts related to MacOS,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- Bash For Loop Example - Bash
- How to calculate SUM in Excel on Mac with Examples - Microsoft
- How to disable SharePoint subsite creation option for owners - SharePoint
- Android App Showing Two Toolbars Issue fix - Android
- bash: command not found error [macOS Terminal Linux, Unix or Windows] - MacOS
- Display (Show) bookmarks bar Safari - HowTos
- [Android] RuntimeException: Unable to start activity Need BLUETOOTH permission - Android
- How to change the tab color on Microsoft Excel on Mac - MacOS