-1

installed mlflow on my windows machine with

pip install mlflow

followed by other dependent library pandas,numpy,sklearn

Ran a tutorial on wine quality model from the give link
https://www.mlflow.org/docs/latest/tutorials-and-examples/tutorial.html

I am getting the below error.

import mlflow.sklearn
ModuleNotFoundError: No module named 'mlflow.sklearn'; 'mlflow' is not a package

I thought it may be some firewall issue, so I tried on my personal system, and it's still the same error.

What could be the mistake I am doing here? or some library related issues I am facing here?

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Shiv948
  • 469
  • 5
  • 13

1 Answers1

0

Please make sure you are installing the package at the correct PATH.

For example, if you have different versions of Python installed on your computer, installing packages can get a little tricky and thus, it's recommended to use a virtual environment to keep packages or different installations properly organised on your computer.

Since you are using a conda environment, I would suggest to use conda install mlflow with an appropriate channel instead of pip install mlflow i.e. conda install -c conda-forge mlflow.

For more details, please check https://anaconda.org/conda-forge/mlflow.

medium-dimensional
  • 1,974
  • 10
  • 19