The default directory for a gurobi.lic license file is:
Windows | C:\gurobi |
Linux | /opt/gurobi |
macOS | /Library/gurobi |
You can also place the gurobi.lic license file in your home directory, but the license will only be available for your account on the computer. We recommended that you place your gurobi.lic license file in the default directory for your system.
However, if it is necessary to store the license file in a different directory, you will need to set the system environment variable GRB_LICENSE_FILE
to point to the exact location of the file. For example, if the license file gurobi.lic is in the directory D:\work
, then set GRB_LICENSE_FILE
to D:\work\gurobi.lic
.
Further information
- Quick Start Guides : "How to Setup a Gurobi License"
- How do I check for a valid license?