Using pip to install gurobipy

Most Python installations come with the Python package management system “pip”. You can use pip to download and install the gurobipy extension simply by opening a terminal window and issuing the following command:

python -m pip install gurobipy

This command instructs the called Python interpreter to download gurobipy from the public PyPI server (https://pypi.org) and install it into your Python environment. Note that our gurobipy installation package is self-contained, so you can use it without any other software installation steps.

After the installation succeeds, you should see gurobipy among the installed packages listed upon typing python -m pip list. For example:

Package             Version
------------------- -----------
gurobipy            10.0.3
pip                 20.2.1
setuptools          49.2.1

Our pip package includes a limited license that allows you to solve small optimization problems. If are an academic user, you can obtain a free, unlimited academic license from our website. Otherwise, you can obtain a free evaluation license by contacting sales@gurobi.com.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search