Given that @Robert's answer focused on macOS, the solution below will work for Windows users. The installation process is as follows, per the Gurobi Documentation:
- Step 1: Download and Install Anaconda -- see get anaconda for more details. Obviously, you can skip this step if you have Anaconda already installed (which is not uncommon if you are already a Python user).
- Step 2: Install Gurobi into Anaconda, which can be done as follows:
The next step is to install the Gurobi package into Anaconda. You do this by first adding the Gurobi channel to your Anaconda channels and then installing the gurobi package from this channel.
From a terminal window issue the following command to add the Gurobi channel to your default search list:
conda config --add channels http://conda.anaconda.org/gurobi
Now issue the following command to install the Gurobi package:
conda install gurobi
- Step 3: Install a Gurobi License The third step is to install a Gurobi license (if you haven't already done so).