These commands are for windows OS.
STEP-1 => Open Command Prompt and type pip freeze then hit enter to see all the dependencies.
window will be shown like this
STEP-2 => To create requirements.txt type pip freeze > requirements.txt and then hit enter.
If you don't get any error it means your requirements.txt file is created successfully.
STEP-3 => Now go to folder C:\Users\NKS(your computer name) and verify the file over there.
Now if you open this requirements.txt file you will see all the dependencies which were showing on Command Prompt.
I hope you have understood everything i explained in this article If you have any question, doubt, feedback or suggestion please leave the comment below. I will be happy to help you. ☺☺☺