Python: How to install psycopg2 using pip

You can install psycopg2 the PostgreSQL database adapter for Python using pip by using the below command.


For Python 2.x

pip install psycopg2-binary

For Python 3.x

pip3 install psycopg2-binary

Read more: https://pypi.org/project/psycopg2/

Install psycopg2 using pip Python

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!