Skip to content
Home » Error: No module named psycopg2.extensions

Error: No module named psycopg2.extensions

To solve Error: No module named psycopg2.extensions error follow below methods.

ERROR LOG

Error: No module named psycopg2.extensions

How to solve Error: No module named psycopg2.extensions

The first step is to install the required dependencies.

sudo apt-get build-dep python-psycopg2

or use the sudo apt install python3-psycopg2 command if you are using python3. Then follow the below command.

The second step is to run the below command in your virtual environment.

pip install psycopg2-binary

Hope the above solution works.

Also Look : TypeError: not enough arguments for format string Python

ModuleNotFoundError: No module named ‘easydict’