我正在尝试将我的应用程序部署到heroku,但是在执行pip install django-heroku后,它给了我一个错误。我在 Mac 上运行 Python 3 和 Django 2.2。
错误消息建议安装psycopg2-binary,我这样做了,但安装后我仍然看到相同的错误。谢谢你的帮助。
错误信息:
ERROR: Complete output from command python setup.py egg_info:
ERROR: running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
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 …Run Code Online (Sandbox Code Playgroud)