Gurobi ImportError: No module named site
AnsweredI have installed Gurobi Optimizer version 9.0.2 and CMPL version: 1.12.0 on Linux. I am using Gurobi to solve a CMPL model. It works fine with the default solver (CBC), but Gurobi gives me the following error
Python version: 2.7.17
What is the reason for this error? And how do I fix this?
-
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?. -
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 -
Hi Gwyneth,
Thanks for your reply.
I have installed Gurobi as described in the installation guide.
PYTHONPATH and PYTHONHOME are unset.
Regards.
0 -
Hi Manvi,
Can you please check whether you can run gurobi_cl without errors or warnings?
Cheers,
Matthias0 -
Hi Matthias,
Yes, gurobi_cl works fine.
Thanks.
Manvi
0
Post is closed for comments.
Comments
5 comments