纪录文
在安装时通常会遇到
ERROR: Failed building wheel for pymssqlFailed to build pymssqlERROR: Could not build wheels for pymssql, which is required to install pyproject.toml-based projects
的问题
在参考了Mac电脑 python3.9 连接SQL Server报错
却仍有错误
参考Cython 0.29.30 failing build with pymssql
后发现我的状况是Cython的版本问题 所以指定pip使用的Cython版本就可以了
echo "Cython==0.29.27" >> constraints.txtexport PIP_CONSTRAINT='<your/constrain/file/path>'pip3 install pymssql==2.1.5