2014-05-10 85 views
3

我正在嘗試按照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)似乎描述了相同的問題,並且我嘗試了該帖子提供的解決方案,並得到了相同的錯誤消息。我不清楚這個問題的原始海報是否找到了解決問題的辦法,但我希望有人有一個想法。

這聽起來對任何人都熟悉嗎?我對此很新,並且對於在這一點上還有什麼其他嘗試沒有任何好的想法。感謝您的閱讀併爲您提供任何幫助!

回答