MLH / mlh-hackathon-flask-starter

Hackathon starter project for Flask applications
MIT License
731 stars 286 forks source link

Getting error on requirements.txt #22

Open prakash-patel opened 3 years ago

prakash-patel commented 3 years ago

Getting below error when i run pip3 install -r requirements.txt

`
Collecting psycopg2==2.7.3.2 Using cached psycopg2-2.7.3.2.tar.gz (425 kB) ERROR: Command errored out with exit status 1: command: /Users/pakiyabhai/Documents/src/github/mlh-hackathon-flask-starter/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-d4id5far/psycopg2_380722b3757640eeb2b34d3e8ea0855d/setup.py'"'"'; file='"'"'/private/tmp/pip-install-d4id5far/psycopg2_380722b3757640eeb2b34d3e8ea0855d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-pip-egg-info-wuo6cble cwd: /private/tmp/pip-install-d4id5far/psycopg2_380722b3757640eeb2b34d3e8ea0855d/ Complete output (14 lines): running egg_info creating /private/tmp/pip-pip-egg-info-wuo6cble/psycopg2.egg-info writing /private/tmp/pip-pip-egg-info-wuo6cble/psycopg2.egg-info/PKG-INFO writing dependency_links to /private/tmp/pip-pip-egg-info-wuo6cble/psycopg2.egg-info/dependency_links.txt writing top-level names to /private/tmp/pip-pip-egg-info-wuo6cble/psycopg2.egg-info/top_level.txt writing manifest file '/private/tmp/pip-pip-egg-info-wuo6cble/psycopg2.egg-info/SOURCES.txt' 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'.
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`

cr105ph1nx commented 3 years ago

substituting psycopg2==2.7.3.2 with psycopg2-binary seems to do the trick for me, but I still get errors regarding the installation of two other dependencies cffi and misaka