-
To create a virtual environment inside the project
$ python -m venv env
-
To activate the virtual environment
$ env\scripts\activate
-
To check the list of package that has been installed
$ pip list
-
To install any package in that environment
$ pip install numpy
-
Create a requirement.txt
$ pip freeze > requirement.txt
-
To deactivate a virtual environment
$ deactivate