我正在尝试按照Heroku上的教程部署Django应用程序。我从一个的virtualenv环境中这样做,按照教程(https://devcenter.heroku.com/articles/getting-started-with-django),并已如此严重,我输入了这一点:在MacOSX上安装Django-toolbelt的错误消息
pip install django-toolbelt
当我尝试安装Django的工具区中,我得到以下错误消息:
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'.
我试图从源头上下载PostgreSQL和编译它自己,我试着从Django的工具区分开下载psycopg2,然后进入该文件夹psycopg2并添加特定pathfile为pg_config。我发现一个旧线程(Error when attempting to install django-toolkit within a python virtualenv)似乎描述了相同的问题,并且我尝试了该帖子提供的解决方案,并得到了相同的错误消息。我不清楚这个问题的原始海报是否找到了解决问题的办法,但我希望有人有一个想法。
这听起来对任何人都熟悉吗?我对此很新,并且对于在这一点上还有什么其他尝试没有任何好的想法。感谢您的阅读并为您提供任何帮助!