Installing pyodbc on ubuntu > 12

I had many problems with it till I got it running, pycharm (“intelligence”) won’t help you there cause you’ll need to compile the lib for it to work first.

$ sudo apt-get install unixODBC-dev

$ sudo apt-get install g++

$ sudo apt-get install python-dev

$ sudo apt-get install tdsodbc

download and extract the pyodbc source code (

run the setup file in the extracted directory:
$ python build
$ sudo python install

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at