且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Mac OS X Yosemite上安装pymssql时出错

更新时间:2022-11-25 20:03:34

通过执行以下三个步骤,您应该能够在Mac上为Azure SQL DB安装pymmsql.

You should be able to install pymmsql on your Mac for Azure SQL DB by following these three steps.

第1步:安装自制软件 转到终端并运行以下命令:

Step 1: Install Homebrew Go to your terminal and run the following command :

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

第2步:安装FreeTDS. 从终端运行以下命令:

Step 2 : Install FreeTDS. From the terminal run the following command :

brew install freetds

这应该在您的系统上安装freetds

This should install freetds on your system

第3步:安装pymmsql.在终端上运行以下命令

Step 3 : Install pymmsql. From the terminal run the following command

sudo -H pip install pymssql

现在,您应该能够使用pymssql连接到Azure SQL DB和SQL Server.

Now you should be able to use pymssql to connect to Azure SQL DB and SQL Server.