LoginSignup
1
1

More than 3 years have passed since last update.

macOS で pyenv install すると BUILD FAILED となりインストールに失敗するときの解決法 (の一つ)

Last updated at Posted at 2020-08-23

解決法

pyenv を使用して Python をインストールしたところ BUILD FAILED となりインストールに失敗しました。原因は binutils でした。binutils を一旦アンインストールしてから再実行したらうまくいきました。

$ brew uninstall binutils
$ pyenv install <PYTHON_VERSION>
$ brew install binutils

なぜ binutils がインストールされているとインストールに失敗するのかはよくわかりませんでした。

"pyenv install build failed macos" などで調べてみるとたくさん記事が出てくるのですが、どれも解決法がバラバラでした。自分の場合は binutils をアンインストールするだけで解決したので、解決法の一つとして共有しておきます。参考になれば幸いです。

環境

環境 バージョン
macOS 10.15.6
pyenv 1.2.20-3-g58c776a1
Python (この手順でインストールしたもの) 3.8.5
その他のシステム情報 Brewfile.lock.json
1
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
1
1