Pymssql installation error on Mac OS X Yosemite

When installing pymssql on OS X Yosemite 10.10.3, the following error appears: did anyone get the following error? I use FreeTDS (v0.91.112) version 7.1 and Python 2.7.6 - the tsql utility connects to the SQL database without any problems.

sudo pip install pymssql

Error

 Command "/usr/bin/python -c "import setuptools, tokenize; __file__='/private/tmp/pip-build-T5Usla/pymssql/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-uZGqK4-record/install- record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-T5Usla/pymssql 
+6
source share
1 answer

You can install pymmsql on your Mac for Azure SQL DB by following these three steps.

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)" 

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

 brew install freetds 

This should install freetds on your system.

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

 sudo -H pip install pymssql 

Now you can use pymssql to connect to Azure SQL DB and SQL Server.

+12
source

Source: https://habr.com/ru/post/988517/


All Articles