Skip to content Skip to sidebar Skip to footer

Error: Failed Building Wheel For Psycopg2 (ubuntu 20.04 + Python 3.8.5 + Venv)

Greetings wisdom from Stackoverflow! I'm having issues building wheel for psycopg2 thru pip install -r requirements.txt. I'm on ubuntu 20.04 + python 3.8.5 + venv. This is my requi

Solution 1:

Instead pip command use:

sudo apt-get install libpq-dev

then use:

pip install psycopg2

Solution 2:

Looks like you need to install libpq-dev according to this Problems compiling and installing psycopg2. pip install libpq-dev should work or perhaps a specific version may be required. About psycopg2 being commented yet it being attempted to install by pip it may be a requirement of one of your other dependencies.

Solution 3:

On Ubuntu, do you can install psycopg2-binary

pip install psycopg2-binary

Post a Comment for "Error: Failed Building Wheel For Psycopg2 (ubuntu 20.04 + Python 3.8.5 + Venv)"