0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MacOS で pyenv が PATH をちゃんと通してくれない時

Last updated at Posted at 2021-12-13

環境

  • macOS Big Sur 11.6
  • Homebrew 3.3.7
  • pyenv 2.2.2
  • MacBook Air (M1, 2020)

現象

brew install pyenv

pyenv を入れた後,

pyenv install miniforge3-4.9.2

とかで入れた python が起動できない

対策

実は https://github.com/pyenv/pyenv に記載されていることなのだが,

eval $(pyenv init --path)

という1行が,

eval $(pyenv init -)

の前に必要になったようだ.
こうすることで,PATH$HOME/.pyenv/shims が追加され,正常に動作する.

わりと最近の記事を見ても,--path の行を入れてないものが多かったりするので注意.

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?