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 need to 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 -i https://pypi.gurobi.com gurobipy
Updating a Python conda installation
To update your Gurobi Python conda package, simply run:
conda update gurobi