Skip to content

Installation

This Project requires Python>=3.12.

Install

By default, python-postgres will install the pure python version of psycopg and the pool extra. Just like psycopg itself, you can install it with the binary or c extras. Whenever possible, you should prefer the c version, especially for production use cases. Read more about the distribution options in the psycopg documentation.

pip install python-postgres[c]
uv add python-postgres[c]
poetry add python-postgres[c]

If this fails, you can try the binary or pure-python version.

pip install python-postgres[binary]
pip install python-postgres
uv add python-postgres[binary]
uv add python-postgres
poetry add python-postgres[binary]
poetry add python-postgres