我尝试使用命令"pyenv install 3.7.0"安装并获得如下错误
Downloading Python-3.7.0.tar.xz...
-> https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
Installing Python-3.7.0...
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems
BUILD FAILED (Ubuntu 14.04 using python-build 20180424)
Run Code Online (Sandbox Code Playgroud)
我已经检查了https://github.com/pyenv/pyenv/wiki/Common-build-problems的解决方案并尝试过
CFLAGS=-I/usr/include/openssl \
LDFLAGS=-L/usr/lib64 \
pyenv install -v 3.7.0
Run Code Online (Sandbox Code Playgroud)
我再次面临同样的错误
The Python ssl extension was not compiled. Missing the OpenSSL lib?
Run Code Online (Sandbox Code Playgroud)
还试图安装低于3.7的python版本,所有版本都安装没有错误.我在这里缺少任何依赖包或版本更新.我有openssl版本
OpenSSL 1.0.1f 6 Jan 2014
Run Code Online (Sandbox Code Playgroud)