无法使用 pyenv 安装 python 3.6.8 -Build Failed OSX 错误

Roo*_*tie 6 python homebrew pyenv

我正在尝试使用 pyenv 在我的 macbook 中安装较旧的 python 版本 3.6.8。\n不幸的是,我遇到了这个构建 OS X 错误,我无法解决该错误。\n如果有人知道我如何解决这个问题,谢谢。

\n\n
(base) \xe2\x9e\x9c  ~ pyenv install 3.6.8\npython-build: use openssl@1.1 from homebrew\npython-build: use readline from homebrew\nDownloading Python-3.6.8.tar.xz...\n-> https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz\nInstalling Python-3.6.8...\npython-build: use readline from homebrew\npython-build: use zlib from xcode sdk\n\nBUILD FAILED (OS X 10.14.6 using python-build 20180424)\n\nInspect or clean up the working tree at /var/folders/cn/d7tn5tls0jg6_dyn2853t6p40000gn/T/python-build.20200424220226.47493\nResults logged to /var/folders/cn/d7tn5tls0jg6_dyn2853t6p40000gn/T/python-build.20200424220226.47493.log\n\nLast 10 log lines:\nchecking for --with-universal-archs... no\nchecking MACHDEP... darwin\nchecking for --without-gcc... no\nchecking for --with-icc... no\nchecking for gcc... x86_64-apple-darwin13.4.0-clang\nchecking whether the C compiler works... no\nconfigure: error: in `/var/folders/cn/d7tn5tls0jg6_dyn2853t6p40000gn/T/python-build.20200424220226.47493/Python-3.6.8':\nconfigure: error: C compiler cannot create executables\nSee `config.log' for more details\nmake: *** No targets specified and no makefile found.  Stop.\n
Run Code Online (Sandbox Code Playgroud)\n