Error: pg_config executable not found.
Tset-Noitamotua opened this issue · 5 comments
Tset-Noitamotua commented
While installing with pip install -r requirements.txt
on OS X El Capitan I get an error:
(OPENSHIFT_DJANGO) @MyMac[~/_GITHUB/django-ex]$ pip install -r requirements.txt
Collecting django<1.9,>=1.8 (from -r requirements.txt (line 1))
Using cached Django-1.8.17-py2.py3-none-any.whl
Collecting django-debug-toolbar==1.5 (from -r requirements.txt (line 2))
Using cached django_debug_toolbar-1.5-py2.py3-none-any.whl
Collecting gunicorn==19.4.5 (from -r requirements.txt (line 3))
Using cached gunicorn-19.4.5-py2.py3-none-any.whl
Collecting psycopg2==2.6.1 (from -r requirements.txt (line 4))
Using cached psycopg2-2.6.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
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 in /private/var/folders/nr/46qp2z_s3wx14pwzl5s_dy6w0000gn/T/pip-build-hkjjeb8f/psycopg2/
PI-Victor commented
@Tset-Noitamotua http://stackoverflow.com/a/24645416/2146586 i think you might be missing a lib.
bparees commented
@PI-Victor does this work on your mac?
Tset-Noitamotua commented
@bparees Installation was successfull after brew install postgresql
. Thanks @PI-Victor!
PI-Victor commented
@bparees i remember this happens all the time on fedora when you don't have all the libraries. same error. :)
bparees commented
@Tset-Noitamotua great
@PI-Victor thanks :)