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

相关推荐
AI攻城狮3 小时前
用 Playwright 实现博客一键发布到稀土掘金
python·自动化运维
曲幽3 小时前
FastAPI分布式系统实战:拆解分布式系统中常见问题及解决方案
redis·python·fastapi·web·httpx·lock·asyncio
孟健18 小时前
Karpathy 用 200 行纯 Python 从零实现 GPT:代码逐行解析
python
码路飞20 小时前
写了个 AI 聊天页面,被 5 种流式格式折腾了一整天 😭
javascript·python
曲幽1 天前
FastAPI压力测试实战:Locust模拟真实用户并发及优化建议
python·fastapi·web·locust·asyncio·test·uvicorn·workers
chlk1231 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑1 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件1 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
敏编程1 天前
一天一个Python库:jsonschema - JSON 数据验证利器
python