【发布时间】:2018-08-14 10:10:58
【问题描述】:
我尝试使用命令安装 “pyenv 安装 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)
我已经检查了https://github.com/pyenv/pyenv/wiki/Common-build-problems 的解决方案并尝试过
CFLAGS=-I/usr/include/openssl \
LDFLAGS=-L/usr/lib64 \
pyenv install -v 3.7.0
我再次面临与
相同的错误The Python ssl extension was not compiled. Missing the OpenSSL lib?
还尝试安装低于 3.7 的 python 版本,所有这些都安装没有错误。我在这里缺少任何依赖包或版本更新。 我有openssl版本
OpenSSL 1.0.1f 6 Jan 2014
【问题讨论】:
标签: python-3.x ubuntu-14.04 python-3.7 pyenv