We recommend placing your gurobi.lic license file in a default directory for your system. Using a non-default or alternative location is error-prone and frequently leads to issues.
Storing the license file in a default location (recommended)
The default directories where Gurobi will search for a gurobi.lic license file are:
|Windows:||C:\gurobi, C:\gurobi1000 (for 10.0.0), and your home directory|
|Linux:||/opt/gurobi, /opt/gurobi1000 (for 10.0.0), and your home directory|
|macOS:||/Library/gurobi, /Library/gurobi1000 (for 10.0.0), and your home directory|
Note that if you place the gurobi.lic license file in your home directory, the license will only be available for your account on the computer.
Storing the license file in an alternative location
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
Common Installation issue: File location