The following table shows which Python versions are supported by Gurobi. A red ✔ denotes which version of Python is used for the Gurobi distribution's interactive shell.
Python | 2.7 | 3.5 | 3.6 | 3.7 | 3.8 | 3.9 | 3.10 | 3.11 | 3.12 | 3.13 |
Gurobi | ||||||||||
8.0 | ✔ | ✔ | ✔ | |||||||
8.1 | ✔ | ✔ | ✔ | ✔ | ||||||
9.0 | ✔ | ✔ | ✔ | ✔ | ✔ | |||||
9.1 | ✔ | ✔ | ✔ | ✔ | ✔ | |||||
9.5 | ✔ | ✔ | ✔ | ✔ | ✔ | |||||
10.0 | ✔ | ✔ | ✔ | ✔ | ✔ | |||||
11.0 | ✔ | ✔ | ✔ | ✔ | ✔ | |||||
12.0 | ✔ | ✔ | ✔ | ✔ | ||||||
12.0.1 | ✔ | ✔ | ✔ | ✔ | ✔ |
Notes
- Support for Python 3.13 is introduced in Gurobi 12.0.1. At the time of release for Gurobi 12.0.0 not all dependencies required by Gurobi supported Python 3.13.
- For Gurobi version <= 10.0 on macOS, the interactive shell uses Python 3.9. Also note that Python 3.7 has reached end-of-life status and is not officially supported as of July 2023. For more information about software supported by Gurobi, see the list of Platforms supported by Gurobi.
- The information reported here refers to the Gurobi Optimizer when downloaded from our website. For the conda and PyPI packages, only a subset of these combinations may be available.
- Starting with version 11.0.2, the Gurobi Interactive Shell has been deprecated.
Further information
- How do I install Gurobi for Python?
- How do I resolve common installation issues with the Gurobi Python Interface: gurobipy?
- How do I resolve the error "UnsatisfiableError" when using conda install?
- How do I update my Gurobi installation to a newer version?
- How do I resolve the error "Could not open PYTHONSTARTUP"?
- Platforms supported by Gurobi