Requirements.txt in GitHub Repo

Hi,

I recently found a website showing a good structure when making GitHub repositories.
Though, I want to add a requirements.txt file and not I’m not sure what directory I should add it to.
Any suggestions?

Edit: I’ve seen some repositories put it inside of the docs folder, but after reading the page more in-depth it would seem as if it would either be inside .config or .build, might be completely wrong though.

The requirement.txt needs to be in the root directory of the GitHub.
I warn you though, do not create it with pip freeze or similar. On Replit there is a lot of rubbish stuff installed in every repl that is Replit specific.

7 Likes

Thanks! For anyone in the future, I had installed pipreqs which only adds modules required by the program.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.