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,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian) - Android
- Unzip a Zip file from Terminal Command - HowTos
- How to update Android Studio - Android-Studio
- [Fix] TypeError: str object is not callable in Python - Python
- How to find the path of formula Installation by Brew - HowTos
- Get the Size of HTTP Response using cURL Command (Content Length) - cURL
- How to fix Microsoft Windows 10 update error 80070020 - Microsoft
- Open New Terminal Window Using Keyboard Shortcut macOS - MacOS