mac 中python 安装mysqlclient 出现 ld: library ‘ssl‘ not found错误

  1. 出现报错
  1. 获取openssl位置

brew info openssl

  1. 配置环境变量(我的是在~/.bash.profile)

export LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib"

export CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.4.0/include"

  1. 执行source ~/.bash.profile

  2. 重新安装 mysqlclient

相关推荐
2601_9622982717 小时前
Python与Selenium结合的Web自动化测试全流程实践教程
自动化测试·python·selenium·web测试·pageobjectmodel
天衍四九-18 小时前
第一章:从 LLM 到 Agent —— DeepSeek Harness 入门
网络·数据库·人工智能·python
529宝宝起名网18 小时前
用 Python 实现名字寓意评分算法:基于 NLP 语义分析的名字内涵深度评估
python·算法·自然语言处理
我是Superman丶18 小时前
Arduino IDE 安装教程:Windows/macOS/Linux 开发环境搭建
ide·windows·macos
2601_9622986718 小时前
Python:对象缓存优化机制(CPython)
python·性能优化·内存优化·cpython·对象缓存
k4m7v2pz19 小时前
Mac 上用 brew 安装 UTM 与 QEMU(代理配置全记录)
macos
枫彩19 小时前
A股数据源怎么选?用 Python 验收 AI 复盘的日期与明细
python·ai agent·股票数据·mcp
2601_9623824319 小时前
Python 代码不可不知的函数式编程技术
python·函数式编程·高阶函数·嵌套函数·头等函数
2601_9620780319 小时前
Python办公自动化与数据分析实战 培训班2021年
python·数据分析·办公自动化·自动化办公·实战演练
用户9385156350720 小时前
Text2SQL 实战:用 DeepSeek 大模型实现自然语言查询 SQLite 数据库
python·sqlite