#I bought new mac book pro and set up my env.
But pyenv install 3.9.0 is not working...
#新しいMacBook Proを購入してセットアップ!
しかし、pyenv install 3.9.0 がerror。lol
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.0.tar.xz...
-> https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
Installing Python-3.9.0...
python-build: use readline from homebrew
BUILD FAILED (OS X 11.2 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/kl/fg7hszwx3hldt471m8jdkr0m0000gn/T/python-build.20210208235816.6951
Results logged to /var/folders/kl/fg7hszwx3hldt471m8jdkr0m0000gn/T/python-build.20210208235816.6951.log
Last 10 log lines:
checking for python3.9... python3.9
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/folders/kl/fg7hszwx3hldt471m8jdkr0m0000gn/T/python-build.20210208235816.6951/Python-3.9.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I see...
BUILD FAILED (OS X 11.2 using python-build 20180424)
Okey.
review my setup.
Lets installed Homebrew!!!
and then
brew install pyenv
then above message "Build Failed" showed up.
I had no idea what I miss. Because I usually used to use windows OS.
I checked same problem who had at stack overflow.
I tried install
とりあえずxcodeが足りなかったわけなのね!
xcode-select --install
then my problem was solved. XD
checked version
pyenv versions
pyenv global 3.9.0
execute my setting
zsh -l
annnnnnnd
python --version
done!!!
you can checked also from this command too ↓
pyenv versions
have happy python life :)
xoxo