pyenv で Powerlineを利用した際に ホームディレクトリ以外でエラーが出る場合の対処

知っていればそのとおりなのだと思いますが pyenvを利用して特定のバージョンの配下に Powerlineを導入し PROMPTを変更しているときにディレクトリを移動すると

pyenv: powerline: command not found
The `powerline' command exists in these Python versions:
2.7.13/envs/defuse
defuse
pyenv: powerline: command not found

The `powerline' command exists in these Python versions:
2.7.13/envs/defuse
defuse

と表示されていしましました。これを回避するには pyenvのglobalに設定してあげると回避出来ます。

$ pyenv versions
system
2.7.13
2.7.13/envs/defuse
* defuse (set by /Users/hideaki/.python-version)

$ pyenv global defuse

 


One thought on “pyenv で Powerlineを利用した際に ホームディレクトリ以外でエラーが出る場合の対処”

コメントを残す

Created by roguer.info 2016