When using Gurobi, you may get an error that looks like:
"GurobiError: Version number is 11.0, license is for version 10.0"
When encountering this error, it's important to understand that Gurobi 11 is currently in beta testing. Licenses for the Gurobi 11 beta are only available to those on our beta list.
The error message you've encountered is likely due to the default package installed when using pip with Python 3.12, which is the Gurobi Python interface (gurobipy) in its version 11 beta. Currently, there is no official non-beta release of Gurobi that supports Python 3.12.
Until Gurobi 11 is released, you can use your license with Gurobi 10 by running pip install gurobipy with Python 3.11 or earlier. For more information on selecting a supported version of Python, please see Which Python versions are supported by Gurobi? Additionally, a good practice is to use virtual environments to manage different Python installations, making it easier to switch between versions when necessary.