前提・実現したいこと
pyenvを使って3.7.0から3.7.1に切り替えたいです。
3.7.1のinstallがうまくいきません。
macユーザーでzshを使っています。
あれこれググってみましたが、解決できませんでした。
よろしくお願いいたします。
発生している問題・エラーメッセージ
pyenv install 3.7.1 python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.7.1.tar.xz... -> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz Installing Python-3.7.1... python-build: use readline from homebrew BUILD FAILED (OS X 10.14 using python-build 20180424) Inspect or clean up the working tree at /var/folders/w7/5lqf3_n55kv07b14gp3x67zm0000gn/T/python-build.20181108222421.28827 Results logged to /var/folders/w7/5lqf3_n55kv07b14gp3x67zm0000gn/T/python-build.20181108222421.28827.log Last 10 log lines: checking size of off_t... 0 checking whether to enable large file support... no checking size of time_t... ./configure: line 2155: /bin/rm: Permission denied 0 checking for pthread_t... no checking size of pthread_key_t... 0 checking whether pthread_key_t is compatible with int... no ./configure: line 9144: /usr/bin/arch: Permission denied configure: error: Unexpected output of 'arch' on OSX 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
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
補足情報
zprofileに以下の設定は書き込み済みです。
zprofile
1export PYENV_ROOT="$HOME/.pyenv" 2export PATH="$PYENV_ROOT/bin:$PATH" 3eval "$(pyenv init -)" 4eval "$(pyenv virtualenv-init -)" 5 6
あなたの回答
tips
プレビュー