using 'pipenv' instead of virtualenv and requirement.txt
To install :
pip install pipenv
To create a virtual environment :
pipenv install
Installing package via pipenv also creates the lockfile :
pipenv install <package>
To activate pipenv :
pipenv shell