Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. Go to www.gurobi.com
  2. Create an account, and request an academic license.
  3. Download the installer for Gurobi 5.0.2
  4. Install Gurobi, accepting default options. Remember where it installed to!
  5. 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
  6. In a terminal, navigate to the .../gurobi502/osx/bin folder
  7. Copy-and-paste the command from the website into the command prompt - you need to be on campus for this to work!
  8. Go up a level (cd ..)
  9. Run the command python setup.py install Apparently this is a bad idea on OSX!
  10. 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.

  1. Go to http://pypi.python.org/pypi/setuptools#files
  2. Download setuptools-0.6c11-py2.76.egg
  3. Run the command sh setuptools-0.6c11-py2.76.egg

Install PuLP 

We need to be careful how we use setuptools to ensure we use the new version we just installed.

  1. Open a terminal
  2. Type sudo python -m easy_install pyparsing==1.5.3
  3. Type sudo python -m easy_install install pulp
  4. easy_install will download and install PuLP to your computer

Check it! 

  1. Start python in interactive mode by typing python 
  2. Type import pulp, hit enter.
  3. Type pulp.tests.pulpTestAll(), hit enter.
  4. Things should mostly look happy, if you see something like "can't run Gurobi" or Gurobi is unavailable, check the steps above.
  5. Email idunning AT mit DOT edu if you need more help.

Confirm it

Confirm it.

  1. Download and run the "installation test file"
  2. Copy the output and paste it into an email, and send it to me (idunning AT mit DOT edu)
  3. If it works, you are good to go!
  4. Do this by the night before, or you will not be allowed into the class! See syllabus for more info.
  5. Email idunning AT mit DOT edu if you need more help.