On a new linux machine I had issues installing from pip.
the setup.py imports from skbuild, so scikit-build has to be installed. It's in the install_requires variable but the error happens prior to that due to the import in the top of the file.
psycopg2 can't be built and installed from pip unless
the postgres server or dev libraries are installed, e.g. libpg-dev for client or postgresql-server-dev-X for server
the python dev libraries, which provide Python.h, e.g. python3.7-dev
On a new linux machine I had issues installing from pip.
the
setup.py
imports fromskbuild
, soscikit-build
has to be installed. It's in theinstall_requires
variable but the error happens prior to that due to the import in the top of the file.psycopg2
can't be built and installed from pip unlesslibpg-dev
for client orpostgresql-server-dev-X
for serverPython.h
, e.g.python3.7-dev