Use
sudo apt install libpq-dev python3-devor
sudo apt install libpq-dev python-devdepends on Python version you want.
Now install psycopg2 to integrate to our Django projects.
pip install psycopg2Ensure to activate the virtual environment before installing psycopg2:
source {$your-env-dir}/bin/activate
No comments:
Post a Comment