Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

LAPP Stack: error with psycopg2 ImportError: libpq.so.5 psycopg2

$
0
0

I want to use Python as well as PHP on my Postgresql server so I tried to install psycopg2, a Postgresql db adapter and there's an error.

Steps to reproduce git clone https://github.com/psycopg/psycopg2 cd psycopg2 python setup.py install

Now go into python interactive console and type import psycopg2.

import psycopg2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/psycopg2/init.py", line 50, in <module> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: libpq.so.5: cannot open shared object file: No such file or directory


Viewing all articles
Browse latest Browse all 2052

Trending Articles