Python is the most popular programming language. Python is used for web development, Data Science, Machine Learning, Artificial intelligence, Operating Systems, Mobile application development, and video games. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming.
This article will guide you in installing Python on macOS through step by step instruction.
How to Install Python on macOS
Step 1: Download the Official Installer
Download the latest version of the python installer for macOS from the official download page.
Step 2: Run the Installer
Run the installer by double-clicking the downloaded file. Press Continue a few times and then click Agree when asking for a software license agreement. Then it will ask for the install destination and show the space it will take, click install. Once done click close to finish the installation process.
Congratulations, Python latest version has been installed in your mac machine. Happy Coding!
Install using Homebrew
Step 1: Install from Homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Enter your macOS user password when prompted.
Step 2: Install Python
$ brew update && brew upgrade
$ brew install python3
The above command will download and install the latest version of Python on your machine.
Congratulations, Python latest version has been installed in your mac machine. Happy Coding!
More Tutorials on Python –
Install pip, virtualenv environment and activate the virtualenv in Linux