On Ubuntu, you’ll need to install unixodbc-dev:
sudo apt-get install unixodbc-dev
Install pip by using this command:
sudo apt-get install python-pip
once that is installed, you should be able to install pyodbc successfully:
pip install pyodbc
More Related Contents:
- Two versions of python on linux. how to make 2.7 the default
- How to make Python script run as service?
- Python returns "SyntaxError: invalid syntax sys module" [closed]
- Take a screenshot via a Python script on Linux
- mysql_config not found when installing mysqldb python interface
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- Run Python script at startup in Ubuntu
- What do I need to read Microsoft Access databases using Python?
- How to find the real user home directory using python?
- Output pyodbc cursor results as python dictionary
- Cross-platform space remaining on volume using python
- Format of /dev/input/event*
- How to get output from subprocess.Popen(). proc.stdout.readline() blocks, no data prints out
- Use the default Python rather than the Anaconda installation when called from the terminal
- Call to operating system to open url?
- MSSQL2008 – Pyodbc – Previous SQL was not a query
- How to upgrade Python version to 3.7? [closed]
- ffmpeg hangs when run in background
- System-wide mutex in Python on Linux
- Executing command using “su -l” in SSH using Python
- How can I prevent Google Colab from disconnecting?
- Paramiko authentication fails with “Agreed upon ‘rsa-sha2-512’ pubkey algorithm” (and “unsupported public key algorithm: rsa-sha2-512” in sshd log)
- Can we use C code in Python?
- Equivalent to GetTickCount() on Linux
- Read file with timeout in Python
- How can I “watch” a file for modification / change? [duplicate]
- How do I check the operating system in Python?
- run a python script in terminal without the python command
- Setting LD_LIBRARY_PATH from inside Python
- pyodbc.connect() works, but not sqlalchemy.create_engine().connect()