###質問内容
お世話になります。
pyenvでpython3系をインストールをしたところ、下記のようなエラーが出てしましました。
python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.6.5.tar.xz... -> https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz Installing Python-3.6.5... python-build: use readline from homebrew python-build: use zlib from xcode sdk BUILD FAILED (OS X 11.1 using python-build 20180424) Inspect or clean up the working tree at /var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231103608.19441 Results logged to /var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231103608.19441.log Last 10 log lines: checking for --with-universal-archs... no checking MACHDEP... darwin checking for --without-gcc... no checking for --with-icc... no checking for gcc... clang checking whether the C compiler works... no configure: error: in `/var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231103608.19441/Python-3.6.5': configure: error: C compiler cannot create executables See `config.log' for more details make: *** No targets specified and no makefile found. Stop.
/var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231105113.21027.log
の内容
/var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231105113.21027 ~ /var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231105113.21027/Python-3.6.5 /var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231105113.21027 ~ checking build system type... x86_64-apple-darwin20.2.0 checking host system type... x86_64-apple-darwin20.2.0 checking for python3.6... no checking for python3... python3 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... darwin checking for --without-gcc... no checking for --with-icc... no checking for gcc... clang checking whether the C compiler works... no configure: error: in `/var/folders/q4/9yt0j4891jl9hg81lwmtpvjc0000gn/T/python-build.20201231105113.21027/Python-3.6.5': configure: error: C compiler cannot create executables See `config.log' for more details make: *** No targets specified and no makefile found. Stop.
###やってみたこと
xcode-select --install
を試してみたところ
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
と出てきました。
pyenvを削除してからもう一度入れ直したらこのような状態になりました。
いろいろ調べてみましたが、さっぱり原因がわかりません。
どなたかわかるかはご教示お願いします。
CPUがなにかと、pyenvを入れた方法と、なぜわざわざ古い3.6.5を入れようとしているのかを質問に追記してください。
回答1件
あなたの回答
tips
プレビュー