Skip to main content

Gurobi python package on Mac cannot find gurobi.lic

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    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?.
  • Alison Cozad
    • Gurobi Staff Gurobi Staff

    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,
    Alison

    Alison Cozad, Ph.D.
    Gurobi Technical Support Team
    she/her/hers

    0

Post is closed for comments.