Thursday, May 24, 2012

Installing pyodbc on ubuntu

Installing pyodbc is straight forward but if getting  "error: command 'gcc' failed with exit status 1" when installing pyodbc, make sure you have installed requirements as below.
sudo apt-get install unixODBC-dev g++
pip install pyodbc

2 comments:

  1. It doesn't work for me.


    compilation terminated.

    error: command 'gcc' failed with exit status 1

    ReplyDelete
  2. I think you may need also to install python-dev. make sure that have the build-essential as well.

    sudo apt-get install python-dev
    sudo apt-get install build-essential

    ReplyDelete