'Error message "no pq wrapper available." popped up when import psycopg?

I'm only running my code which the first line is

import psycopg

and then the ImportError "no pq wrapper available" just popped up.

There's not really a solution i could find anywhere, so that's why i'm asking here.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source