-
pip install virtualenv ->to able to use venv
-
python -m venv .venv -to generate the venv file - the .venv is just the filename can be given any
-
..venv\Scripts\activate -> to activate environment
-
pip list ->to see dependcy
-
to give out the list pip list > requirement.txt
- requirement file will be generated with the dependcy in it
-
now to install the generated list we write pip install -r requirements.txt
-
deactivate -> command to go out of venv