pythonのpyenv別バージョンのインストール失敗するのを直すやり方

$ pyenv install 3.7.4

python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.4.tar.xz…
-> https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
Installing Python-3.7.4…
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 10.14.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/fs/yp3b5ks53mvbrgjjfm3s5q7w0000gp/T/python-build.20190915065206.97525
Results logged to /var/folders/fs/yp3b5ks53mvbrgjjfm3s5q7w0000gp/T/python-build.20190915065206.97525.log

“__Py_InitializeFromConfig”, referenced from:
_test_init_from_config in _testembed.o
_test_init_dev_mode in _testembed.o
_test_init_isolated in _testembed.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Programs/_testembed] Error 1
make: *** Waiting for unfinished jobs….
make: *** [python.exe] Error 1

初回実行時のエラー内容。

“pythonのpyenv別バージョンのインストール失敗するのを直すやり方” の続きを読む