我正在尝试使用 pyenv 准备多版本 python 开发环境。我已经成功安装了 pyenv。我通过 homebrew 安装了 pyenv ( https://github.com/pyenv/pyenv#homebrew-on-macos )。但是当我尝试安装 python 版本时,遇到了错误:
\n\xe2\x9e\x9c live_xr_cms_api git:(dev) \xe2\x9c\x97 pyenv install 3.9.6\npython-build: use openssl@1.1 from homebrew\npython-build: use readline from homebrew\nDownloading Python-3.9.6.tar.xz...\n-> https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tar.xz\nInstalling Python-3.9.6...\npython-build: use readline from homebrew\npython-build: use zlib from xcode sdk\nWARNING: The Python readline extension was not compiled. Missing the GNU readline lib?\nERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?\n\nPlease consult to the Wiki page to fix the problem.\nhttps://github.com/pyenv/pyenv/wiki/Common-build-problems\n\n\nBUILD FAILED (OS X 11.4 using python-build …Run Code Online (Sandbox Code Playgroud)