Sumit Jaiswal
Sumit Jaiswal

Reputation: 236

requirements.txt file in heroku

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?

Upvotes: 0

Views: 4225

Answers (1)

Jorge Morgado
Jorge Morgado

Reputation: 1178

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.

Upvotes: 2

Related Questions