Install gurobi & get license
Chose the corresponding version
Use the academic License:
copy your key (in this example is " grbgetkey 53f2fe08-fade-11eb-8a57-0242ac130004 ")
Activate Gurobi
grbgetkey 53f2fe08-fade-11eb-8a57-0242ac130004
copy the file path "C:\Users\USER\y\gurobi.lic"
If it shows the message "Unable to contact key server", it means failure of activation. You should redo the previous steps.
Windows —> Setting —> About —>Advance system setting —> Environment variable
System Variable —> add a system variable with name "GRB_LICENSE_FILE" and value "C:\Users\USER\y\gurobi.lic" (your file path).
Paste "the file path "C:\Users\USER\y\gurobi.lic" on variable value.
Install Gurobi into python library
Gurobi
Input the command :
python setup.py install
Test in python
from gurobipy import *
Reference