To update an existing installation of Gurobi, please follow the installation instructions of the new version. It is not necessary to uninstall the previous version. You should, however, 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 8 to 9, requires a new license file.
- For automatically updated licenses (such as commercial licenses with active maintenance and academic site floating licenses), you need to rerun grbgetkey using the existing license code found on the License Detail page accessed from Your Gurobi Licenses. Note that you should use the grbgetkey executable from the new version.
- For named-user academic licenses, you should create a new license on your personal account page.
- For other license types, please submit a support request.
Updating a Python pip installation
To update your gurobipy installation, simply run
python -m pip install --upgrade
To install a specific version, use this command:
python -m pip install gurobipy==9.5.0
Updating a Python conda installation
To update your Gurobi Python conda package, simply run:
conda update gurobi
To install a specific version, use this command:
conda install gurobi=9.5.0
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.