Create a virutal environment
python -m venv env #will create a env folder
Activate the virual environment
.\env\scripts\activate
Then install modules. For example,
pip install tqdm
The freeze the environment by running
pip freeze > requirements.txt
Exclude the env folder from the repo. Add env to .gitignore file
env .vscode