Posted onIntutorialViews: Word count in article: 1.3kReading time ≈1 mins.
psycopg2 is a useful python package for handling PostgreSQL. However, you may find something wrong like pg_config executable not found. when installing this package. In this post, I will teach you how to install it successfully.
How to install python3 and pip3 on Linux
Though it is basic, I still would like to review it with you.
apt install libpq-dev apt install python3.11-dev # Change the version number to your version pip install psycopg2 sudo apt install build-essential # If that's not enough, you might additionally need to install