Topic starter 19/08/2021 12:13 am
How to install psycopg2 with “pip” on Python?
I'm using virtualenv and I need to install "psycopg2".
I have done the following:
pip install psycopg2
And I have the following messages:
Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. ---------------------------------------- Command python setup.py egg_info failed with error code 1 Storing complete log in C:\Documents and Settings\anlopes\Application Data\pip\p ip.log
myTechMint liked
20/08/2021 11:20 pm
In ubuntu you can use the below commands in sequence this will properly install "psycopg2"
sudo apt-get update sudo apt-get install libpq-dev python-dev sudo pip install psycopg2
Neha liked