Make sure you have the python-dev
package installed (needed to compile packages with native bindings (thanks to @ravihemnani).
Then you'll need to install the FreeTDS development package (freetds-dev
) before trying to install pymssql
with pip:
$ sudo apt-get install freetds-dev
and then, in your virtualenv or wherever you wish to install it:
$ pip install pymssql