Skip to main content

Gurobi ImportError: No module named site

Answered

Comments

5 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?.
  • Gwyneth Butera
    Gurobi Staff Gurobi Staff

    Hi Manvi - 

    Did you install Gurobi using "conda install gurobi"? Or did you install the full install as described in https://www.gurobi.com/documentation/9.0/quickstart_linux/software_installation_guid.html?

    Also, can you check what the values for the system variables PYTHONHOME and PYTHONPATH are?

    Thanks!

    0
  • Manvi Gupta
    Gurobi-versary
    First Comment
    First Question

    Hi Gwyneth,

    Thanks for your reply.

    I have installed Gurobi as described in the installation guide. 

    PYTHONPATH and PYTHONHOME are unset.

    Regards.

     

     

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Manvi,

    Can you please check whether you can run gurobi_cl without errors or warnings?

    Cheers,
    Matthias

    0
  • Manvi Gupta
    Gurobi-versary
    First Comment
    First Question

    Hi Matthias,

    Yes, gurobi_cl works fine. 

    Thanks.

    Manvi

    0

Post is closed for comments.