Skip to main content

ModuleNotFoundError

Answered

Comments

3 comments

  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    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
  • Olatunji Adeyanju
    First Comment
    First Question

    Unfortunately, this doesn't resolve the issue. Here is a screenshot for your info. Thanks 

    0
  • Pierre Bonami
    Gurobi Staff Gurobi Staff

    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.