任何人都可以建議我什麼是錯的?heroku拒絕django應用程序推
Heroku總是拒絕代碼推送,因爲它無法構建我的代碼。從錯誤消息看來,當它試圖用pip安裝requirements.txt時,Pip未安裝!
git push staging feature/homepage:master
Counting objects: 16, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (16/16), 1.48 KiB | 0 bytes/s, done.
Total 16 (delta 9), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: Usage: pip-diff [options]
remote:
remote: Traceback (most recent call last):
remote: File "/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/vendor/pip-pop/pip-diff", line 116, in <module>
remote: main()
remote: File "/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/vendor/pip-pop/pip-diff", line 112, in main
remote: diff(**kwargs)
remote: File "/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/vendor/pip-pop/pip-diff", line 84, in diff
remote: r1 = Requirements(r1)
remote: File "/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/vendor/pip-pop/pip-diff", line 29, in __init__
remote: self.load(reqfile)
remote: File "/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/vendor/pip-pop/pip-diff", line 39, in load
remote: for requirement in parse_requirements(reqfile, finder=finder, session=requests):
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_file.py", line 93, in parse_requirements
remote: for req in req_iter:
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_file.py", line 192, in process_line
remote: for req in parser:
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_file.py", line 93, in parse_requirements
remote: for req in req_iter:
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_file.py", line 140, in process_line
remote: opts, _ = parser.parse_args(shlex.split(options_str), defaults)
remote: File "/app/.heroku/python/lib/python2.7/optparse.py", line 1402, in parse_args
remote: self.error(str(err))
remote: File "/app/.heroku/python/lib/python2.7/optparse.py", line 1584, in error
remote: self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
remote: File "/app/.heroku/python/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_file.py", line 284, in parser_exit
remote: raise RequirementsFileParseError(msg)
remote: pip.exceptions.RequirementsFileParseError: pip-diff: error: no such option: ------------------------
remote:
remote: $ pip install -r requirements.txt
remote: Usage: pip [options]
remote:
remote: pip: error: no such option: ------------------------
remote:
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to cryptic-forest-66390.
remote:
To https://git.heroku.com/cryptic-forest-66390.git
! [remote rejected] feature/homepage -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/cryptic-forest-66390.git'