ubuntu源码安装python3.13遇到Could not build the ssl module!解决方法

我在Ubuntu 24.04.2 LTS下载源码安装Python 3.13.5时:

#./configure --enable-loadable-sqlite-extensions --enable-optimizations

#make

显示错误信息:

Could not build the ssl module!

Python requires a OpenSSL 1.1.1 or newer

查询我的openssl版本:

openssl version

OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

明显高于1.1.1版本

指定--with-openssl参数就OK了:

#./configure --enable-loadable-sqlite-extensions --enable-optimizations --with-openssl=/usr

#make

#make install

查询openssl路径方法:

which openssl

/usr/bin/openssl

所以指定--with-openssl路径为/usr

相关推荐
Yn31210 分钟前
如何安装 scikit-learn Python 库
python·机器学习·scikit-learn
芥末章宇20 分钟前
Jetson NX Python环境搭建:使用APT轻松安装NumPy, scikit-learn, OpenCV
python·numpy·scikit-learn
菜菜子爱学习23 分钟前
Nginx学习笔记(九)—— Nginx Rewrite深度解析
linux·运维·笔记·学习·nginx
Tearstornbyrain1 小时前
在Ubuntu24.04中使用ssh连接本地git仓库到github远程仓库
linux·git·ubuntu·ssh·github
Felix_M.2 小时前
CLAM复现问题记录
python
猫头虎2 小时前
用 Python 写你的第一个爬虫:小白也能轻松搞定数据抓取(超详细包含最新所有Python爬虫库的教程)
爬虫·python·opencv·scrapy·beautifulsoup·numpy·scipy
Jia ming2 小时前
【奔跑吧!Linux 内核(第二版)】第6章:简单的字符设备驱动(三)
linux
三年呀2 小时前
**超融合架构中的发散创新:探索现代编程语言的挑战与机遇**一、引言随着数字化时代的快速发展,超融合架构已成为IT领域的一种重要趋势
python·架构
Q_Q19632884752 小时前
python基于Hadoop的超市数据分析系统
开发语言·hadoop·spring boot·python·django·flask·node.js
MediaTea2 小时前
Python 第三方库:Requests(HTTP 客户端)
开发语言·网络·python·网络协议·http