If you never install virtual environment before, you need to have virtual env install.
py -m pip install --user virtualenv
$ cd <# your project folder name #>
$ py -m venv env <# (it will create the new folder in your repository called env). #>
$ ./env/Scripts/activate <# (it will activate the virtual environment). #>
$ deactivate <# (to deactivate the virtual environment). #>
$ pip install -r requirements.txt
<# in case pip not work you can try out pip3 as below. #>
$ pip3 install -r requirements.txt
$ pip freeze > requirements.txt