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 -i https://pypi.gurobi.com gurobipy
This command instructs the called Python interpreter to download
gurobipy
from our private PyPI server
(https://pypi.gurobi.com)
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.
We plan to eventually move the gurobipy
package to the public
PyPI server (https://pypi.org), which will remove the need for
the -i
argument.
After the installation succeeds, you should see gurobipy
among the installed packages listed upon typing
python -m pip list. For example:
Package Version ------------------- ----------- gurobipy 9.1.0 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.