The default directory for a gurobi.lic license file is:
You can also place the gurobi.lic license file in your home directory, though the license will only be available for your account on the computer. It is recommended to place your gurobi.lic license file in the default directory.
However, if it is necessary to store the license file in a different directory, 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