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 file
Keep in mind that updating to a new major version, e.g. going from 8 to 9, does require a new license file.
- For automatically updated licenses (e.g. commercial licenses with active maintenance), 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 this.
- For single-user academic license key files, you should create a new license on your personal account page.
- For other license types, please create a support ticket.
Updating a Python/conda installation
To update your Gurobi Python installation, simply run:
conda update gurobi
If you installed gurobipy in your own Python installation, you need to repeat the steps in the Quickstart Guide for the new Gurobi version (python setup.py install for Linux and Mac or pysetup on Windows).