[常见错误] ImportError: libpq.so.5: cannot open shared object file: No such file or directory
from psycopg._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: libpq.so.5: cannot open shared object file: No such file or directory
Solution:
# cd /etc/ld.so.conf.d # echo "/usr/local/pgsql/lib" >>pgsql.conf # ldconfig