Here's a simple and easy guide to install Python on Mac. Here's a simple and easy guide to install Python on Mac. If that’s the case, simply run this command instead and it will install pip. Sudo easyinstall pip. Python 2 vs Python 3. Python 2 is still on your system even though you’ve installed Python 3. In order to send commands to Python 3, you will need to enter python3 in the terminal. If you enter python, the command will be sent to Python 2.
Xcode is Apple's Integrated Development Environment (IDE). You might already have Xcode on your Mac. If not, you can get Xcode from Apple appstore.
Homebrew installs the stuff you need. Homebrew is a package manager for Mac OS
Step 1. Launch Terminal.
Go to Launchpad – Other – Terminal
Step 2. Install HomeBrew
Enter brew command into terminal
brew install python3
Set up PATH environment variable, if you used HomeBrew to install Python3, then HomeBrew already added PATH.
Do not change PATH environment if you can launch python3 from terminal.
Add the following line to your ~/.profile file
Usually your Python installation directory looks like this, add it to your PATH