如何使用brew在macOS中安装以前版本的Python 3?
使用该命令brew install python我获得了最新版本的Python 3(目前是v3.7.0),但我想要最新版本的Python 3.6(目前是3.6.5).
我已经阅读了另一个pyenv可以帮助处理不同python安装的软件包,但是这个解决方案并不适合我.
我正在尝试使用 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)