While the Gurobi installation includes everything you need to use
Gurobi from within Python, we understand that some users would prefer
to use Gurobi from within their own Python environment. Doing so
requires you to install the
gurobipy module. The steps for
doing this depend on your platform.
On Windows, you can double-click on the pysetup program in
the Gurobi <installdir>/bin
directory. This program will prompt you for the location of your
Python installation; it handles all of the details of the
Note that Gurobi distributes an Anaconda package, so you don't need to perform these steps if you are using Anaconda Python. Please refer to the instructions for setting up Gurobi for use within the Anaconda distribution for details.
Note that for this installation to succeed, your Python environment
must be compatible with the Gurobi Python module.
You should only install 32-bit Gurobi libraries into a 32-bit Python
shell (similarly for 64-bit versions).
In addition, your Python version must be compatible. With this
gurobipy can be used with Python 2.7, 3.6, or 3.7 on