ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib? 2020年10月12日 Linux 留言 官方已经给出解决方案:https://github.com/pyenv/pyenv/wiki/Common-build-problems#error-the-python-ssl-extension-was-not-compiled-missing-the-openssl-lib 在Mac上且用homebrew装了openssl的情况下,命令行如下: 123CFLAGS="-I$(brew --prefix openssl)/include" \LDFLAGS="-L$(brew --prefix openssl)/lib" \pyenv install -v 3.6.2 再补充一句,pyenv前面不要加sudo。否则编译仍旧报错通不过。 文章目录 原文链接: http://yoursite.com/2020/10/12/ERROR-The-Python-ssl-extension-was-not-compiled-Missing-the-OpenSSL-lib/ 版权声明: 转载请注明出处.