Installation Instructions

If you encounter any bugs during installation, please email gpkit@mit.edu.

Mac OS X

1. Install Python and build dependencies

  • Install the Python 2.7 version of Anaconda.
  • If you don’t want to install Anaconda, you’ll need gcc and pip, and may find sympy, scipy, and iPython Notebook useful.
  • If which gcc does not return anything, install the Apple Command Line Tools.
  • _Optional:_ to install gpkit into an isolated python environment you can create a new conda virtual environment with conda create -n gpkit anaconda and activate it with source activate gpkit.
  • Run pip install ctypesgen in the Terminal.

2. Install either the MOSEK or CVXOPT GP solvers

3. Install GPkit

  • Run pip install gpkit at the command line.
  • Run python -c "import gpkit.tests; gpkit.tests.run()"
  • If you want units support, install pint with pip install pint.

Linux

1. Install either the MOSEK or CVXOPT GP solvers

2. Install GPkit

  • _Optional:_ to install gpkit into an isolated python environment, install virtualenv, run virtualenv $DESTINATION_DIR then activate it with source activate $DESTINATION_DIR/bin.
  • Run pip install ctypesgen at the command line.
  • Run pip install gpkit at the command line.
  • Run python -c "import gpkit.tests; gpkit.tests.run()"
  • If you want units support, install pint with pip install pint.
  • You may find sympy, scipy, and iPython Notebook to be useful additional packages as well.

Windows

1. Install Python dependencies

  • Install the Python 2.7 version of Anaconda.
  • If you don’t want to install Anaconda, you’ll need gcc and pip, and may find sympy, scipy, and iPython Notebook useful.
  • _Optional:_ to install gpkit into an isolated python environment you can create a new conda virtual environment with conda create -n gpkit anaconda and activate it with source activate gpkit.
  • Run pip install ctypesgen at an Anaconda Command Prompt.

2. Install either the MOSEK or CVXOPT GP solvers

3. Install GPkit

  • Run pip install gpkit at an Anaconda Command Prompt.
  • Run python -c "import gpkit.tests; gpkit.tests.run()"
  • If you want units support, install pint with pip install pint.