What Does "No module named 'gurobipy' mean"?
Awaiting user inputI will start by sayin I am VERY new to Gurobi but I have been using Gurobi successfully and, last night, began receiving the following message when I attempted to create a new model:
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Input In [1], in <cell line: 1>() ----> 1 import gurobipy as gp 2 from gurobipy import GRB ModuleNotFoundError: No module named 'gurobipy'
It looks likes Gurobi isn't installed, correct? If so, it was yesterday morning when I ran another model.
0
-
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
There could be many reasons for this behaviour. One of the most common is the fact that Gurobi may be installed in a different (conda) environment than the one you are using it.
Could you please share some more details about the Python / Gurobi version you are using?
Best regards
Jonasz0
Post is closed for comments.
Comments
2 comments