Great news! You’re already done with this step. By default, the current Mac OS X has Python 2.7.5, but earlier versions of Mac OS X, with slightly earlier versions of Python, are fine.
One of the wonders of modern programming is that writing sophisticated programs is often quite easy by making use of work others have already done. In Python, this comes in the form of third-party modules that we will download and import for use by our own programs. For example, if you want to open some images to crop and stretch and cut and paste together, you don’t need to write a program that interprets a .jpg file, as someone has already done that, you just have to import their code. As such, you will now want to install all of the wonderful modules written and maintained by outside sources that we will be using. These *DO NOT* come on Mac OSX, so you’ll need to download an installer::
Find your version of OSX and install command line tools. You can find this by clicking the Apple icon in the navigation bar and selecting ‘About This Mac’.
- 10.9 Mavericks - Open Terminal. Run the command xcode-select --install. Continue by hitting Install. Wait for the installer to complete. If this does not work, you can simply run this installer: Command Line Tools for Mavericks
- 10.8 Mountain Lion - Run Command Line Tools for Mountain Lion
- 10.7 Lion - Run Command Line Tools for Lion
- 10.6 Snow Leopard and below - For now, please use Download And Install The Virtual Machine. If you would like to run natively, please email TA Matt Peveler at pevelm@rpi.edu.
Run the Module Installer
To reset/uninstall the modules, run Module Reset Once you click on reset.command you will have to put in your computer password and hit Enter. Be aware that it will not show the keystrokes as you type your password.
This installer will add all of the modules that we will need for the entire semester. You will start to learn how to use these modules in the coming weeks and months. Once this installer has completed, you may delete the installer folder from your computer.
For OS X 10.7* users only, this installer might fail due to a security feature, called Gatekeeper. The way to fix this is to temporarily disable this security feature, install the software, then re-enable the security feature. If the installer fails, please follow the following instructions:
Click the Apple icon in the menu bar and select System Preferences.
Go to Security & Privacy — It is located in the first row, which is entitled Personal.
Click on the General tab.
Authenticate: Click on the lock at the bottom-lefthand corner of the screen and subsequently input your computer user account password.
In the bottom half of the ‘General’ tab, there will be the following choices:
Allow applications downloaded from:
- ( ) Mac App Store
- (X) Mac App Store and identified developers
- ( ) Anywhere
Select Anywhere and select Allow From Anywhere in the subsequent dropdown warning. We will be re-enabling this feature after the installer is completed.
Install the software package.
Once the installer has completed, go back to the System Preferences window and re-select the option
Allow applications downloaded from:
- ( ) Mac App Store
- (X) Mac App Store and identified developers
- ( ) Anywhere
This will return the security settings back to normal.
Close System Preferences window.
Now, go back and get everything else you need Getting the IDE