-
-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: pg_config executable not found. though using psycopg2-binary #699
Comments
Probably you are using an old version of pip or a platform that doesn't support manylinux (e.g. Linux Alpine). |
i'm on debian jessie, I will check for the version of pip |
indeed, upgrading pip fix the issue, thanks |
I am having the same problem |
I ran into a similar problem, trying to install psycopg2 into a python:3.7-alpine container. I'm sure something could be done in the Dockerfile to install |
Like @hoylemd I ran into this on a python:3.7-alpine container. I fixed it by installing |
sudo apt-get install libpq-dev https://tutorials.technology/solved_errors/9-Error-pg_config-executable-not-found.html |
this is ok for me: sudo apt-get install libpq-dev |
however it should not, as the goal of psycopg-binary is to avoid compilation and installing these headers, if we are to install these , then using psycopg (without binary) is certainly an option. |
for me, none of the above solutions worked. I use python 3.6.1 and pycharm on Mac |
I have the following lines in my requirements.txt
to avoid having to compile it, however when i run pip install I got the following error messages:
The text was updated successfully, but these errors were encountered: