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?
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
The below command will install it for system
pip install mlflow
To install it for the user
pip install mlflow --user
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With