LoginSignup
9
4

More than 1 year has passed since last update.

eval "$(pyenv init -)" がうまく動かない時の対処法

Posted at

参考

問題

RaspiOSでpyenv使おうとしたら

WARNING: `pyenv init -` no longer sets PATH.
Run `pyenv init` to see the necessary changes to make to your configuration.

っていうのが出て、which python してもpyenvのpythonじゃなく /usr/bin/python を見てしまっていた。

解決策

eval "$(pyenv init -)"

eval "$(pyenv init --path)"

に書き換えたらうまくいった

9
4
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
9
4