Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mlflow: problems with pip installation

I read through many threads regarding installation issues using pip. However, I could find a solution to help me fix my problem. I installed mlflow with :

    pip3 install mlflow

so mlflow is installed in /usr/local/bin/mlflow

Since it is not in /Users/xxxx/opt/anaconda3/lib/python3.7/site-packages, I get "ModuleNotFoundError: No module named 'mlflow' error when I try to run code that imports mlflow module. How should I fix this?

like image 515
missnomer Avatar asked Jul 19 '26 13:07

missnomer


2 Answers

Python modules are not global. Every module is installed and can be used with one Python.

You seems to have at least two Pythons — the system Python and anaconda. The command

pip3 install mlflow

seems to install the module to the system Python. Check it with pip3 --version.

To install the module to anaconda you need to use anaconda's pip. Something like

/Users/xxxx/opt/anaconda3/bin/python -m pip install mlflow
like image 150
phd Avatar answered Jul 27 '26 01:07

phd


The below command will install it for system

pip install mlflow 

To install it for the user

pip install mlflow --user
like image 39
NoobCoder Avatar answered Jul 27 '26 02:07

NoobCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!