psycopg2 PostgreSQL driver, has c code that requires a suitable compiler and some libraries to be installed. This makes it hard to install on GCP works spun on the fly. (earlier psycopg2-binary, psycopg2 with pre-binaries was used as PostgreSQL driver in this library. That was a mistake; the binary can work on a limited target systems and is intended for testing).
in contrast pg8000 is pure python PostgreSQL driver.