Ubuntu install psycopg2 times: fatal error: libpq Fe. H: there is no solution to that file or directory

Said the postgres installation on a blog, try to use python operation below, according to the net friend introduction, the need to install psycopg2:https://www.jianshu.com/p/646f4c19b0f3?utm_campaign=haruki

pip install psycopg2

But it said wrong:

./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: There's no such file or directory.
   #include <libpq-fe.h>
            ^~~~~~~~~~~~
  compilation terminated.

Hehehehehehe, these people are not tested?
Search a netizen’s solution:

sudo apt-get install libpq-dev

Then it can be normally installed, ha ha ha, really let a person speechless.

Read More: