use pipenv to create virtualenv in other version code example
Example: install packages from pipfile
# suppose you have a pipfile where the dependencies are
pipenv shell
pipenv install
# suppose you have a pipfile where the dependencies are
pipenv shell
pipenv install