Closed pagreene closed 5 years ago
Addressed in https://github.com/altaurog/pgcopy/pull/17
Thanks @pagreene for calling this to my attention. I hope to come up with a solution for this, but replacing the "psycopg2"
dependency with "psycopg2-binary"
isn’t an option, particularly considering that the psycopg2 maintainers recommend installing from source.
I’m sorry I can’t be more help yet, but in lieu of a fix, I might suggest you either:
setup.py
on the fly before installingAnother approach, suggested by the psycopg2 maintainer, is to specify an earlier version of psycopg2 in your requirements.txt. This works quite well, assuming you don’t need the latest version:
psycopg2==2.7.7
pgcopy
psycopg2
recently removed the pypi entry forpsycopg2
, making it so you need to install viapip install psycopg2-binary
instead. This means that currently, becausepsycopg2
is a dependency ofpgcopy
, pgcopy won't pip install.