ML-Flow installation in R

Viewed 888

I have installed MLFLOW for R in my ubuntu environment. When I try to execute any command for mlflow I am getting below error

mlflow_ui() Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : cannot start processx process (system error 2, No such file or directory) @unix/processx.c:573

2 Answers

You can install MLFlow separately using pip and then specify the variables in your ~/.Renviron. If you don't have a .Renviron file, create one. (Checkout out help("Startup") in R for more info).

The environment variables you need to set in the .Renviron file are:

MLFLOW_PYTHON_BIN and MLFLOW_BIN. These need to set to the location of your python executable and mlflow executable.

Simply get those by running which python and which mlflow after installing mlflow with pip.

Make sure to restart Rstudio (perhaps try removing mlflow and re-installing the package).

Then there will be no need to run mlflow::install_mlflow().

@digvijay have you installed conda & invoked the R install_mlflow function on your machine? It's necessary to do so before invoking the R APIs - install_mlflow creates a conda environment for installing the MLflow CLI, which some of the R APIs (e.g. mlflow_ui) depend on.

Related