我尝试使用命令“ 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)
我已经检查了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.7.0需要OpenSSL 1.0.2。我找不到比开发邮件列表更好的资源。到目前为止,在Ubuntu 14.04上运行Python 3.7.0一直没有成功,因为安装正确版本的OpenSSL且没有冲突是一个窍门。
Python 3.7:要求OpenSSL> = 1.0.2
https://mail.python.org/pipermail/python-dev/2018-January/151718.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句