ModuleNotFoundError
AnsweredAfter calling:
from gurobi_ml import add_predictor_constr
The following Error emerged:
ModuleNotFoundError: No module named 'gurobi_ml'
Please I'll appreciate any help to resolve this.
Thanks
0
-
Hi,
To use the gurobi_ml module, please ensure that you have installed the gurobi-machinelearning package.
The package can be installed easily via pip:
pip install gurobi-machinelearning
For more details, please refer to the installation instructions here.
Regards,
Simran
0 -
Unfortunately, this doesn't resolve the issue. Here is a screenshot for your info. Thanks
0 -
Hello,
It looks like it's an issue with your python not finding the package.You could try to uninstall Gurobi machine learning and reinstall it.
You could also try seeing what is the output of the find_spec function:
```
from importlib.util import find_spec
spec = find_spec('gurobi_ml')
```
0
Please sign in to leave a comment.
Comments
3 comments