-
Notifications
You must be signed in to change notification settings - Fork 93
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
pyscopg2 #1
Comments
@cshuman I don't recall exact package names and I'm out of good Internet connection, so I can't check them for you now, but you will need python3-dev and libpostgres. |
@cshuman I have successfully installed |
You could've just install |
@lockie It was not available at that moment, and in fact, it is only |
@frol Yeah, you're right, its still in the |
I tried installing it from edge, and while it seems to work, python can't import it!
@lockie .. any idea what's wrong |
@kim0 It works for me...
|
@kim0 Your |
@lockie I am testing with python:3.5.2-alpine .. Just tried with the instructions above, also didn't work |
@kim0 I think you're mixing python packages from python docker image (which reside in |
Thanks, that makes sense. I thought python folks used alpine packages I guess. Alright |
Yeah, they're, like, totally building python from source, which seems strange to me too. |
@kim0 Just in case if you haven't noticed, this repository doesn't have any relation to the official |
this thread is still useful \o/ It made my day, thank you! :D |
For reference, stackoverflow response provides a fairly clean way to do it from the requirements install without adding the py3-psycopg2 package. It also removes postgresql-dev after the psycopg2 install, which saves some space: https://stackoverflow.com/questions/46711990/error-pg-config-executable-not-found-when-installing-psycopg2-on-alpine-in-dock
|
Another approach based on https://asciinema.org/a/172825:
|
Hi Everyone, can anyone help me understand the musl-stg exists or is it the same docker file that we need to implement for the stage and prod environment also? |
Any idea on which dependencies need to be installed in alpine linux to be able to
pip install psycopg2
?The text was updated successfully, but these errors were encountered: