
:max_bytes(150000):strip_icc()/how-to-install-python-on-mac-4781318-3-b1027e4e85b845539326dd23a8ec61c2.png)
- Setting up python for mac how to#
- Setting up python for mac for mac os x#
- Setting up python for mac install#
Setting up python for mac install#
Install Mercurial: Still at the Terminal prompt, type:.This will install a separate Python 3 specifically for Pygame use – this is required for all the following steps to work. Install Python 3 for Pygame: At the Terminal prompt, type:.Prepare Homebrew for use: At the Terminal prompt, type each of the following three commands exactly as shown – the second two may take a few moments to run and will show several screens of information, but keep following the steps one line at a time.Įcho export PATH=’/usr/local/bin:$PATH’ > ~/.bash_profile.Homebrew is a free program that helps you install Python, Pygame, and other programs on a Mac. Install Homebrew: At the Terminal command line prompt, type the following as a single full line (you may want to expand your Terminal window wider to allow it to fit, but it’s okay if it wraps around):.All the following commands must be typed exactly as they appear in the Terminal window, one line at a time. Your command-line Terminal window will open. Open a Terminal (command-line) window: Go to Applications, Utilities, and double-click Terminal.Open your Downloads folder, double-click on the XQuartz-2.7.7.dmg file, then double-click on the XQuartz.pkg package file and follow the instructions to complete the installation. Install XQuartz: Go to and download the current version of XQuartz (2.7.7 as of this writing).

You’ll need these developer tools to run some of the command-line instructions in a Terminal window below. Search for Xcode and click Get to install the Xcode developer tools. Install Xcode: In Finder, open Applications, App Store.
Setting up python for mac how to#
How to install Pygame for Python 3 on Mac OS X successfully, every time:
Setting up python for mac for mac os x#
