[英]pymssql: Package installation failed in Mac OS
I tried installing with pipenv install pymssql
and it failed我尝试使用pipenv install pymssql
但失败了
Then tried with pip install pymssql
but import pymssql
not working in Mac OS (Big Sur 11.5.2)然后尝试使用pip install pymssql
但import pymssql
在 Mac OS (Big Sur 11.5.2) 中不起作用
Also tried pip3 install pymssql==2.1.5
it gave error as还尝试pip3 install pymssql==2.1.5
它给出了错误
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pymssql
Failed to build pymssql
ERROR: Could not build wheels for pymssql which use PEP 517 and cannot be installed directly
I resolved the issue by following below steps我按照以下步骤解决了这个问题
brew install freetds
brew install unixodbc
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
brew install msodbcsql mssql-tools
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.