我已經在heroku上爲教育目的部署了幾個應用程序。今天我用燒瓶創建了一個新的應用程序,我按照以前的方式在heroku網站上按照指示操作。問題發生在我需要使用PIP步驟來安裝其他東西燒瓶 - 由於Pip失敗而無法部署應用程序
(venv)[email protected]:~/Documents/Projects/workspace/hellowork$ pip install Flask gunicorn
Downloading/unpacking Flask
Downloading Flask-0.10.1.tar.gz (544Kb): 544Kb downloaded
Running setup.py egg_info for package Flask
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git' ...
.....它繼續與他人。從這現在開始,我不能在Heroku上部署,因爲它總是彈出上述沿附加誤差:
Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-2.1-py2.7.egg.OLD.1395994594.37
Patched done.
Relaunching...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'install' is not defined
----------------------------------------
Cleaning up...
Command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u56661/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-y13sLM-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_u56661/distribute
Storing debug log for failure in /app/.pip/pip.log
! Push rejected, failed to compile Python app
To [email protected]:quiet-meadow-5679.git
我requirement.txt:
Flask==0.10.1
Jinja2==2.7.2
MarkupSafe==0.19
Werkzeug==0.9.4
argparse==1.2.1
distribute==0.6.24
gunicorn==18.0
itsdangerous==0.23
wsgiref==0.1.2
我使用Ubuntu,每包已是最新。我從來沒有遇到過這個問題,而且我已經花了幾個小時。任何想法如何解決它將不勝感激。
應用程序運行良好localhost與工頭btw。
謝謝