It appears you are missing some prerequisite to build the package from source. You may install a binary package by installing 'psycopg2-binary' from PyPI. code example
Example: psycopg2-binary install
pip install psycopg2-binary
pip install psycopg2-binary