Installation Guide - Windows

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.

Install Python 2.7

  1. Go to http://python.org/download/
  2. Download "Python 2.7.3 Windows Installer"
    1. Get the 32-bit version unless you know what you are doing.
  3. Run installer, follow instructions - the default options are fine.
    1. It will probably install to C:/Python27

Install Gurobi 5.0.2

  1. Go to www.gurobi.com
  2. Create an account, and request an academic license.
  3. Download the installer for Gurobi 5.0.2, 32bit
    1. If you downloaded 64-bit Python, you'll need to get the 64-bit version of Gurobi
  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. Open a "Command Prompt" from the Start Menu, and navigate to the .../gurobi502/win32/bin folder e.g. cd c:/gurobi502/win32/bin
  7. Copy-and-paste the command from the website into the command prompt - you need to be on campus for this to work!
  8. Restart your computer
  9. Open a command prompt and navigate back to the gurobi502/win32 folder.
  10. Recall where Python is installed, and run the following command, changing the location of Python as appropriate: C:/Python27/python setup.py install
  11. You are done!

Install setuptools 

This small application helps you install Python packages.

  1. Go to http://pypi.python.org/pypi/setuptools#files
  2. Download setuptools-0.6c11.win32-py2.7.exe
  3. Install it - default options should be fine.

Install PuLP 

  1. Open a command prompt and navigate to your Python folder's scripts folder, e.g. C:/Python27/Scripts
  2. Type easy_install.exe pyparsing==1.5.3
  3. Type easy_install pulp
  4. easy_install will download and install PuLP to your computer

Check it! 

  1. Keeping the command prompt open, go back to the Python27 directory. 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

  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. Do this the night before, or you will not be allowed into the class! See syllabus for more info.
  • No labels