get the list of libraries installed in virtualenv to requiremenrs.txt code example
Example 1: virtual environments for python
python3 -m venv tutorial-env
Example 2: virtual environment python
#create new virtual environment
python3 -m venv /path/to/new/virtual/environment