mac 电脑通过pyenv 安装 python 失败,提示报错:Error The Python ssl extension was not compiled.

Description

如题描述,当前在本地高版本的 macos 电脑上,通过直接命令行方式:

pyenv install 3.10

安装 python 提示报错失败:

Error The Python ssl extension was not compiled. Missing the OpenSSL lib?

完整报错路下:

❯ pyenv install 3.10
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.12.tar.xz...
-> https://www.python.org/ftp/python/3.10.12/Python-3.10.12.tar.xz
Installing Python-3.10.12...
python-build: use readline from homebrew
python-build: use zlib from homebrew
Traceback (most recent call last):
  File "", line 1, in <module>
  File "/User

你可能感兴趣的:(macos,python,ssl)