~ pyenv install 3.5.6 python-build: use [email protected] from homebrew python-build: use readline from homebrew Downloading Python-3.5.6.tar.xz... -> https://www.python.org/ftp/python/3.5.6/Python-3.5.6.tar.xz Installing Python-3.5.6... python-build: use readline from homebrew python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.3 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/h6/h0z030p94js_t1nx_m7tpyz00000gn/T/python-build.20210621110910.12796 Results logged to /var/folders/h6/h0z030p94js_t1nx_m7tpyz00000gn/T/python-build.20210621110910.12796.log
Last 10 log lines: Py_FatalError("abort() called from Python code didn't abort!"); ^~~~~~~~~~~~~ ./Modules/posixmodule.c:11345:9: warning: code will never be executed [-Wunreachable-code] posix_error(); ^~~~~~~~~~~ clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Werror=declaration-after-statement -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/[email protected]/include -I/Users/liyang/.pyenv/versions/3.5.6/include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/[email protected]/include -I/Users/liyang/.pyenv/versions/3.5.6/include -DPy_BUILD_CORE -c ./Modules/_sre.c -o Modules/_sre.o 11 warnings and 1 error generated. make: *** [Modules/posixmodule.o] Error 1 make: *** Waiting for unfinished jobs.... 1 warning generated.
python-build: use [email protected] from homebrew python-build: use readline from homebrew Installing Python-3.5.6... patching file Misc/NEWS.d/next/macOS/2020-06-24-13-51-57.bpo-41100.mcHdc5.rst patching file configure Hunk #1 succeeded at 3492 (offset 66 lines). patching file configure.ac Hunk #1 succeeded at 492 (offset -18 lines). python-build: use readline from homebrew python-build: use zlib from xcode sdk Installed Python-3.5.6 to /Users/liyang/.pyenv/versions/3.5.6
使用查看目前已安装的版本。
1 2 3 4
liyang@liyang ~ pyenv versions system 3.5.6 * 3.6.13 (set by /Users/liyang/.pyenv/version)