u012453368 2022-02-22 11:31 采纳率: 0%
浏览 1811

mac安装pymssql报错,Building wheel for pymssql (pyproject.toml) ... error

问题遇到的现象和发生背景

连接sqlserver,需要使用pymssql,但是mac使用pip install pymssql安装时报错

运行结果及报错内容

Collecting pymssql
Using cached pymssql-2.2.4.tar.gz (169 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pymssql
Building wheel for pymssql (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pymssql (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
setup.py: platform.system() => Darwin
setup.py: platform.architecture() => ('64bit', '')
setup.py: platform.libc_ver() => ('', '')
setup.py: include_dirs => []
setup.py: library_dirs => []
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.9
creating build/lib.macosx-10.13-x86_64-3.9/pymssql
copying src/pymssql/init.py -> build/lib.macosx-10.13-x86_64-3.9/pymssql
running build_ext
creating build/temp.macosx-10.13-x86_64-3.9
creating build/temp.macosx-10.13-x86_64-3.9/src
creating build/temp.macosx-10.13-x86_64-3.9/src/pymssql
src/pymssql/_mssql.c:688:10: fatal error: 'sqlfront.h' file not found
#include "sqlfront.h"
^~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pymssql
Failed to build pymssql
ERROR: Could not build wheels for pymssql, which is required to install pyproject.toml-based projects

  • 写回答

1条回答 默认 最新

  • CSDN专家-黄老师 2022-02-22 14:59
    关注

    你的电脑环境还没装好,可以参考官方相关解决方案:
    https://github.com/pymssql/pymssql/issues/129

    评论

报告相同问题?

问题事件

  • 创建了问题 2月22日

悬赏问题

  • ¥15 无源定位系统的时差估计误差标准差
  • ¥15 请问这个代码哪里有问题啊
  • ¥20 python--version在命令端输入结果Python is not defined怎么办?还有pip不是exe格式是不是没安装成功?
  • ¥15 通过GaussianView进行结构微调消除虚频
  • ¥15 调用transformers库
  • ¥15 由于导出的数据名字中带有/,导致Matlab打不开,怎么办?
  • ¥15 新硬盘安装的程序总是崩溃,提示遇到错误
  • ¥15 openpcdet自制数据集评估bev精度和3d精度相同
  • ¥15 excel 上下按钮 显示行
  • ¥20 云卓h12pro 数传问题