venv install requirements.txt code example
Example 1: pip install from requirements.txt
$ pip install -r requirements.txt
Example 2: creating virtual environment python
python3 -m venv tutorial-env
#name : tutorial-env
tutorial-env\Scripts\activate #activate env
deactivate #deactivate env
Example 3: create virtual environment python 3
python3 -m venv /path/to/new/virtual/environment
Example 4: how to activate venv python
python3 -m venv tutorial-env
Example 5: how to activate the pytho virtual environment
mypthon\Scripts\activate