记录一次安装mysqlclient的经历
使用命令安装 python3.11 -m install mysqlclient==2.2,出现以下报错
温馨提示:
如果大家也是MacBook m系列芯片的电脑,建议直接按照官网步骤安装,轻松完成安装,没有必要在花费大量的时间去找安装教程,同时还不一定安装成功!!!
因为我好久没有用win了,不了解win,这里只能分享MacBook的!!!
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Trying pkg-config --exists mysqlclient
Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
Trying pkg-con