Modules that are apart of Python’s standard library such as
sys do not need to be listed in your
requirements.txt file, although you still can.
If we are talking libraries that are not from the Python standard library, you will then need to list these libraries. Something like
args (as listed in your thread title) is third party, so you’d have to run:
pip install args
args in your
requirements.txt essentially does that for you, along with any other module that isn’t apart of the Python standard library. I hope this clears your question up. Please feel free to ask as many questions as you’d like. That’s why I’m here for.
Please take a look at this to look at Python’s standard libraries.