LoginSignup
1
0

More than 1 year has passed since last update.

pyenv installで"C compiler cannot create executables"で失敗するときの対応方法

Last updated at Posted at 2021-08-29

概要

pyenv install 3.9.4で以下のエラーが出た。(エラーの前後は省略)

configure: error: C compiler cannot create executables

3.9.4を別のバージョンに変えても同じエラーで失敗する。

結論としては、xcode-selectをインストールし直したら成功した。

環境

  • macOS Big Sur
  • pyenv 2.0.5

対応方法

$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install

自分はこの方法でうまくいきましたが、実行するときは自己責任でお願いします。

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