gurobipy is the Gurobi Python interface. This module allows new users to hit the ground running with convenient, object-oriented modeling constructs and an API to all Gurobi features.
gurobipy offers three installation options:
For a full installation guide, check out Gurobi’s Python installation guide. If you prefer videos, be sure to watch this installation video and common installation issues video.
Python versions 2.7 and 3.5 through 3.13 are compatible with gurobipy, assuming the user has the appropriate version of Gurobi. It is important to match your version of Python with the appropriate Gurobi release. For a full diagram of Python and Gurobi compatibility, please review the Gurobi version guide.
Two things that set Gurobi apart are our customer support services and learning resources. We are continually developing new materials to help new and experienced users alike in developing their skills. Python users who are new to Gurobi or mathematical optimization may want to start with these:
Yes, gurobipy supports the most common forms of mathematical optimization models, including quadratic and linear models. The Gurobi reference manual section on gurobipy has guidance on both quadratic and nonlinear programming.
If you have questions, our Help Center is a great place to get started. Gurobi staff are very active in the community, responding to frequently asked questions in a timely manner.
gurobipy Pandas is a wrapper library that integrates Gurobi with Pandas. It is ideal for experienced Pandas users who have some familiarity with mathematical optimization. No background in Gurobi is necessary to use this library.
We recommend using official Gurobi APIs, as they preserve all functionality, reduce overhead, and are always compatible with the latest Gurobi release. However, we understand that some users need to implement their model with open-source frameworks.
If you prefer this option, check out our guide for using Gurobi with open-source modeling frameworks, which covers five of the most popular APIs.
Yes, a commercial license is required to use gurobipy. (However, no license is required to access most of the learning materials mentioned here.) For more information about license options, including a free trial, please review our licensing page.
We recommend the following additional resources:
Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.
Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.