LoginSignup
0
0

More than 5 years have passed since last update.

mlflowコマンドが見つからない時の解決方法

Posted at

問題

この記事でも書いたんですが、macOSにpyenvとanacondaを使ってインストールしたMLflowのmlflowコマンドが見つからないという問題です。

$ mlflow ui
-bash: mlflow: command not found

結論

パスが通ってないだけでした。。。

今回の対処手順

しょうがないから再インストールしてみるか、ということで再インストールしました。

$ pip --no-cache-dir install -I mlflow --user

そしたら以下のような表示が!

The script chardetect is installed in '/Users/panda531/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

完全に見落としてました…

ということで~/.bashrcに以下の記述を追加しました。

export PATH=$PATH:/Users/panda531/.local/bin

そして

source ~/.bashrc

これで無事にパスが通るようになりました。

ただ、~/.local/binじゃなくて仮想環境の下(~/.pyenv/versions/anaconda3-5.0.1/envs/envname/bin/)に入ってほしいんですけどどうなんでしょうか。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0