장고에 대한 Heroku의 튜토리얼을 따라 가고 pip install -r requirements.txt
에 올 때까지 계속하려고합니다. 더로드 장고, DJ-데이터베이스와 유니콘,로드 psycopg2의 stucks에 문제가 얻을장고에 대한 requirements.txt를 설치할 때 오류가 발생합니다
Error: pg_config executable not found.
은 없지만 나는 SO와 같은 Getting Started with Python on Heroku 및 Can't figure out where Heroku app is failing에 몇 가지 항목을 통해 읽었습니다. 나는 그곳에서 해답과 제안을 따랐으며, 나는 brew를 통해 postgresql을 다시 설치했다; 모두 성공하지 못했습니다.
내 PATH는
/usr/local/bin : /usr/bin : /bin : /usr/sbin : /sbin : /usr/local/lib/python2.7/site-pakages : /Applications/Postgres.app/Contents/Versions/9.6/bin : /Users/Martin/anaconda/bin : /usr/X11/bin
이며, 그것이 있어야하고, PATH에 추가되는 경우 내 pg_config이다. 하지만 난 여전히 메시지
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'.
내가 OSSiera 10.12.2 오전를 얻을. 도움을 주시면 감사하겠습니다.
@ user639774 postgresql이 올바르게 설치되었습니다. 고마워, – MarBlo
하지만 PATH에 pg_config에 경로를 추가해야한다는 것을 알았습니다. 이 파일의 위치를 찾았 으면 PATH에 추가하고 닫은 다음 새 터미널을 여는 등 모든 작업이 완료되었습니다. 감사 – MarBlo