
Sometime in the future I will need to setup a MacBook Pro including installing Python. dmg file appropriate for your version of OS X and double-click it to run the standard installer.Īfter installation, open gedit (it should be in your Applications folder).In many ways this is a note to my future self. We are going to use a very good, no-frills text editor called gedit ĭownload the. Your command prompt will now look slightly different: the command line will be preceded by ow we have set up a virtual environment, which is where any Python libraries we decide to install will be stored. Now that we have installed virtualenv, we can create a Virtual Environment - run this in your command prompt:

Save it to your home folder (/Users/your_name). To install virtualenv on the Mac, download this file: Type "help", "copyright", "credits" or "license" for more information.įor the purposes of this workshop, we will install virtualenv, a useful tool for creating isolated development environments (which makes it easier to experiment with various versions of Python code libraries and modules). You should see something like the following:.Test your install by typing this into the command prompt: python.Open the Terminal application (under Applications > Utilities) and type into the command prompt: hash -r.dmg file by double-clicking and follow the onscreen instructions to install Python on your computer.


Download the latest version of Python 2.7 for the Mac from /download/releases/2.7.3.

This from XCode (Macs came bundled with the XCode Developer Tools DVD you can also download a full version from ) or the smaller Before we begin, make sure you have GCC installed to compile Python.However, using the pre-installed version of Python for this workshop can pose some problems, so we will be installing the "real" version, straight from. Macs come pre-installed with a special version of Python.
