How can I install packages on my heroku app?

回眸只為那壹抹淺笑 提交于 2019-12-01 14:39:58

I usually create a requirements.txt file that contains the packages:

Flask==0.9
Jinja2==2.6
Werkzeug==0.8.3
distribute==0.6.27
wsgiref==0.1.2

Flask-Cache==0.10.0

gunicorn==0.17.2

You can create that file with pip:

$ pip freeze > requirements.txt

Place a requirements.txt in the root directory of your git repo, with your required dependencies (specified in pip/easy-install format).

Example taken from the Heroku website:

Flask==0.8
Jinja2==2.6
Werkzeug==0.8.3
certifi==0.0.8
chardet==1.0.1
distribute==0.6.24
gunicorn==0.14.2
requests==0.11.1
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!