我遵循Heroku指南,将Python与Heroku一起使用。
我正在installing dependencies的步骤,但是当我运行pip install -r requirements.txt --allow-all-external
时,我收到此错误:
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'.
当我通过Git从Django应用程序的根目录运行python setup.py build_ext --pg-config C:\Program Files\PostgreSQL\9.4\bin\pg_config.exe
时,出现no such directory
错误。
我做错了什么?