I made a telegram bot in python that scraps a website for anime updates. I tried to deploy it on Pythonanywhere but the website is not on there whitelist. Now, I want to try Heroku but it made me confused with the requirements.txt file. what should I write in that file?
Asked
Active
Viewed 3,605 times
0
-
3`requirements.txt` file is a file that contains all the dependencies of your python program. Se this: [https://stackoverflow.com/tags/requirements.txt/info](https://stackoverflow.com/tags/requirements.txt/info) – Jorge Morgado Oct 08 '20 at 05:13
-
1@JorgeMorgado I think you can make your comment here as an answer. – wowkin2 Oct 08 '20 at 09:09
1 Answers
2
requirements.txt
is a file that contains all the dependencies of your python program. Se this: https://stackoverflow.com/tags/requirements.txt/info
The dependencies will be written like this for example:
typer==0.3.1
There are some ways to do this automatically. I believe pip freeze
gives you all the external dependencies of your environment. By external I mean all the modules that are not build-in.
See this answer. This shows you how to create automatically the requirements.txt
with only the external dependencies your project uses.

Jorge Morgado
- 1,148
- 7
- 23