When I installed Python using pyenv, it resulted in BUILD FAILED and the installation failed. The cause was binutils. I uninstalled binutils and then re-run it and it worked.
$ brew uninstall binutils
$ pyenv install <PYTHON_VERSION>
$ brew install binutils
I wasn't sure why the installation would fail if binutils was installed.
If you look it up in "pyenv install build failed macos", you will find many articles. The solutions were all different. In my case, I solved it by just uninstalling binutils, so I will share it as one of the solutions. I'm glad if you can use it as a reference.
environment | version |
---|---|
macOS | 10.15.6 |
pyenv | 1.2.20-3-g58c776a1 |
Python (What was installed by this procedure) | 3.8.5 |
Other system information | Brewfile.lock.json |
Recommended Posts