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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?相关的知识,希望对你有一定的参考价值。

       官方已经给出解决方案:https://github.com/pyenv/pyenv/wiki/Common-build-problems#error-the-python-ssl-extension-was-not-compiled-missing-the-openssl-lib

       在Mac上且用homebrew装了openssl的情况下,命令行如下:

CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install -v 3.6.2

       再补充一句,pyenv前面不要加sudo。否则编译仍旧报错通不过。

以上是关于ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?的主要内容,如果未能解决你的问题,请参考以下文章

/configure error SSL modules require the OpenSSL library

Python urllib.error certificate verify failed(_ssl.c:749)

JACK错误 SSL error when connecting to the Jack server. Try 'jack-diagnose'

Android 系统编译不过了报错Try jack-diagnose,SSL error when connecting to the Jack server

nginx 编译某个模板的问题./configure: error: SSL modules require the OpenSSL library. You can either do not en

pache排查问题:Apache ERROR: No space left on device: AH00023: Couldn't create the ssl-cache mutex(示例