When upgrading to a new major version, e.g. 12.x to 13.x, there may be backward-incompatible changes. All additions, changes, and removals are outlined in our Release Notes.
Updating a full Gurobi installation (not pip or conda)
To update an existing installation of Gurobi, please follow the installation instructions of the new version. It is recommended to uninstall the previous version to avoid complications. To do so, please clean up the environment variables that were set during the installation to remove paths to old versions and remove the previous installation directories. This helps avoid possible version clashes or incompatibilities with other tools, IDEs, or configurations.
Updating the license
Keep in mind that updating to a new major version, such as upgrading from 12 to 13, may require a new license file.
- For Gurobi Instant Cloud and WLS licenses, nothing is needed to be done.
- For automatically updated licenses (such as commercial licenses with active maintenance and academic site floating licenses), you need to download the updated license by clicking on the installation icon
in the Licenses page of the User Portal. Note that you should use the grbgetkey executable from the new version.
- For Free Academic (Trial) academic licenses, you should create a new license on your personal account page.
- For other license types, please submit a support request. Refer to How do I submit a help request as a Commercial user? and How do I get support as an Academic user?
Updating a Python pip installation
To update your gurobipy installation, simply run
python -m pip install gurobipy --upgradeTo install a specific version (eg 10.0.3), use this command:
python -m pip install gurobipy==10.0.3Updating a conda installation
To update your Gurobi conda installation, simply run:
conda update -c gurobi gurobiTo install a specific version (eg 10.0.3), use this command:
conda install -c gurobi gurobi=10.0.3To test a new version, you can also create a new conda environment (here called new-gurobi), keeping your old installation as backup:
conda create -n new-gurobi -c gurobi gurobiUpdating a Compute Server
Please refer to this article for further information: How do I upgrade Compute Server?
Performance between versions
With each new major or minor version, it is always a good idea to re-tune parameter settings, starting from defaults. It often happens that defaults in a new version are superior to tuned parameters of an older version.
Compatibility
Gurobi licenses are backward compatible. With a Gurobi license version 13, you can run all Gurobi Optimizer versions <=13.