Solved: Error: pg_config executable not found

Error: pg_config executable not found. pg_config is required to build psycopg2 from source. 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’.
Solution-
{Read:- 5 Ways to Improve SEO on Your WordPress Site }
Python 3 – Solved: Error: pg_config executable not found
1 2 |
sudo apt-get install libpq-dev pip3 install psycopg2 |
Python 2 – – Solved: Error: pg_config executable not found
1 2 |
sudo apt-get install libpq-dev pip install psycopg2 |
Above solution also work if you are facing below type of issue.
ModuleNotFoundError: No module named ‘psycopg2’
If you still facing any issue or getting any other time of error, share your issue in comment.
{Read:- How to Build a WordPress Site in 1 Day }