Cannot install psycopg2 Ubuntu
You’ve installed the python-dev libraries for Python 3. Your psycopg2 install is using python 2.7 If on Ubuntu 20.04 or above sudo apt-get install build-essential Then run the other steps for either Python 2 or 3: If you want to use Python 3: Make sure you’ve installed python3-pip sudo apt-get install python3-pip Then: pip3 install … Read more