Skip to content
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

pip install -r requirements.txt fails on mac due to psycopg2 #3

Open
xkortex opened this issue Dec 17, 2021 · 1 comment
Open

pip install -r requirements.txt fails on mac due to psycopg2 #3

xkortex opened this issue Dec 17, 2021 · 1 comment

Comments

@xkortex
Copy link

xkortex commented Dec 17, 2021

Hi, nice project! However, out of the box, users may find compatibility issues due to psycopg2, which is notoriously a bit finnicky. Initially, when I tried to pip install psycopg2, I got some errors like

  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'.

  If you prefer to avoid building psycopg2 from source, please install the PyPI
  'psycopg2-binary' package instead.

However, I had no issue with psycopg2-binary. You may want to make a note of it in the readme and/or make psycopg2-binary the default. You may mention this in the videos - I admit I haven't watched them yet! But I know a lot of folks just like to jump straight into the codebase.

@CarlosMaciasCusiter
Copy link

I had an issue with psycopg2-binary for a long time while on windows. You might need to make sure your computer has a c++ compiler installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants