Installation Guide - OSX
This brief guide will get you set up for this workshop with all the software you need. If you already have a piece of software, just skip the step corresponding to it.
Python
- You should already have this installed.
- Gurobi only supports the version of Python bundled with OSX.
Install Gurobi 5.0.2
- Go to www.gurobi.com
- Create an account, and request an academic license.
- Download the installer for Gurobi 5.0.2
- Install Gurobi, accepting default options. Remember where it installed to!
- Go back to the website and navigate to the page for your academic license. You'll be given a command with a big code in it, e.g. grbgetkey aaaaa-bbbb
- In a terminal, navigate to the .../gurobi502/osx/bin folder
- Copy-and-paste the command from the website into the command prompt - you need to be on campus for this to work!
- Go up a level (cd ..)
- Run the command python setup.py install Apparently this is a bad idea on OSX!
- You are done!
Install setuptools
This small application helps you install Python packages. OSX comes with an older version that doesn't work nicely with PuLP. We will install a new version.
- Go to http://pypi.python.org/pypi/setuptools#files
- Download setuptools-0.6c11-py2.6.egg
- Run the command sh setuptools-0.6c11-py2.6.egg
Install PuLP
We need to be careful how we use setuptools to ensure we use the new version we just installed.
- Open a terminal
- Type sudo python -m easy_install pyparsing==1.5.3
- Type sudo python -m easy_install pulp
- easy_install will download and install PuLP to your computer
Confirm it.
- Download and run the "installation test file"
- Copy the output and paste it into an email, and send it to me (idunning AT mit DOT edu)
- If it works, you are good to go!
- Do this by the night before, or you will not be allowed into the class! See syllabus for more info.
- Email idunning AT mit DOT edu if you need more help.
1 Comment
Unknown User (idunning@mit.edu)
If you have errors, try using "python2.6" everywhere you see python. This will resolve issues with multiple Python copies installed.