Before using Gurobi Optimizer, you'll need to install the software on your computer.
In case you have the Gurobi Optimizer already installed on your machine and you would like to upgrade, please skip to Are you upgrading Gurobi? section.
Python only
If you plan to use Gurobi from Python only, you can use pip to install Gurobi for Python or use our Anaconda package instead. Details on the differences in the installation methods can be found in How do I install Gurobi for Python?
Full installation
When installing the full Gurobi product, your first steps are to visit our download page, find your platform, and choose the corresponding file to download.
Please open the subsection related to your platform to continue:
Windows
Your next step is to double-click on the Gurobi installer that you downloaded from our website (e.g., Gurobi-12.0.0-win64.msi for the 64-bit version of Gurobi 12.0.0).
Note: if you selected Run when downloading you've already run the installer and don't need to do it again.
By default, the installer will place the Gurobi 12.0.0 files in the directory c:\gurobi1200\win64. The installer gives you the option to change the installation target. We'll refer to the installation directory as <installdir>.
Note that the installer can also be used to repair or remove a past installation.
Command-Line Installation
You can also install Gurobi using the command-line interface to the Windows Installer. Open a cmd prompt, use cd to go to the directory that contains the Gurobi installer image, and enter the following command:
msiexec /i Gurobi-12.0.0-win64.msi /norestart
If you are unfamiliar with running command-line commands on a Windows system, you can learn more in How do I use the command line on Windows?
Video guide for Windows
Helpful tools
To work with compressed files within Gurobi Optimizer, we recommend that you install gzip (www.gzip.org) and/or 7zip (www.7-zip.org).
macOS
Your next step is to double-click on the appropriate Gurobi installer (e.g., gurobi12.0.0_macos_universal2.pkg for Gurobi 12.0.0) and follow the prompts.
By default, the installer will place the Gurobi 12.0.0 files in /Library/gurobi1200/macos_universal2 (note that this is the system /Library directory, not your personal ~/Library directory).
Your <installdir> will be /Library/gurobi1200/macos_universal2.
Video guide for MacOS
Linux (x64 / armlinux64)
Your next step is to choose a destination directory. We recommend /opt for a shared installation (assuming you have sudo privileges to write in that directory), or your home directory for a private installation, but other directories will work as well. You'll need to change your working directory to the destination directory (e.g., cd /opt or cd /home/jones), copy the Gurobi distribution to that directory, and then extract the contents:
tar xvfz gurobi12.0.0_linux64.tar.gz
or
tar xvfz gurobi12.0.0_armlinux64.tar.gz
This command will create a sub-directory /opt/gurobi1200/linux64 or /opt/gurobi1200/armlinux64 that contains the complete Gurobi distribution (assuming you chose /opt). Your <installdir> will be this subdirectory.
Gurobi Optimizer makes use of several executable files. To allow these files to be found when needed, you will need to modify a few environment variables:
- GUROBI_HOME should point to your <installdir>.
- PATH should be extended to include <installdir>/bin.
- LD_LIBRARY_PATH should be extended to include <installdir>/lib.
For guidance on setting these environments please refer to How do I set system environment variables for Gurobi?
Video guide for Linux
Are you upgrading Gurobi?
Please refer to the subsequent articles for guidance on upgrading Gurobi based on the product:
- If you are upgrading Gurobi Optimizer, see How do I update my Gurobi installation to a newer version?
- If you are upgrading your Token Server, see How do I update my token server to a newer version?
- If you are upgrading the Compute Server, see How do I upgrade Compute Server?
Further information
- How do I install Gurobi for Python?
- How do I install Gurobi for Java?
- How do I use Gurobi with NuGet?
- How do I install Gurobi for Matlab?
- How do I install Gurobi for R?
- How do I install Gurobi on a machine without internet access?
Comments
0 comments
Article is closed for comments.