How to resolve gurobipy license/version incompatibility?

62 Views Asked by At

When I run the following code,

import pyomo.environ as pe  
pers_solver = pe.SolverFactory('gurobi_persistent')  
mymodel = pe.ConcreteModel()   
pers_solver.set_instance(mymodel) 

...I was getting the error Error message: Version number is 11.0, license is for version 10.0. According to this: https://support.gurobi.com/hc/en-us/articles/19581700936977

I should do 2 things:

I checked /Library/gurobi1100/macos_universal2 and all of the necessary files seem to be there. So, I clearly have the license. What do I need to do to get Gurobi to recognize that it's compatible with my current version Python3.9?

1

There are 1 best solutions below

2
Greg Glockner On

As the error message states, this is a license key issue. You need to update your gurobi.lic license file.