Gurobi python package on Mac cannot find gurobi.lic
AnsweredHey all,
I have installed gurobi Python package on my Mac OS laptop, Catalina OS. I put gurobi license under "Library/gurobi/gurobi.lic", though gurobi models cannot find the license and throws error that my model is too large. Any insight appreciated.
Thanks,
Mahshad Eslamifar
Senior Quant Developer, RBC, GAM
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Mahshad,
It sounds like Gurobi is finding the license that comes prepackaged with the Gurobi pip installer rather than 'Library/gurobi/gurobi.lic'. Our pip installer includes a limited license that allows you to solve small optimization problems.To check which license you are using, run model = gp.Model().
a) If you are using the limited pip install license you will see:
Restricted license - for non-production use only - expires XXXX-XX-XX
b) If you are using your license file noted above, you will see:
Using license file Library/gurobi/gurobi.lic
If you find that you are using the pip install license, you will need to specify GUROBI_LICENSE_FILE by running the following command in your terminal window:
export GRB_LICENSE_FILE="Library/gurobi/gurobi.lic"
Here are a couple of related articles for anyone else who stumbles across this post:
Regards,
AlisonAlison Cozad, Ph.D.
Gurobi Technical Support Team
she/her/hers0
Post is closed for comments.
Comments
2 comments