Pipenv is a dependency manager for Python projects. If you’re familiar with Node.js’ npm or Ruby’s bundler, it is similar in spirit to those tools. While pip can install Python packages, Pipenv is recommended as it’s a higher-level tool that simplifies dependency management for common use cases.

Use pip to install Pipenv:

Install pipenv using following command:
pip install --user pipenv

Now pipenv will work like a python package manager. So, if you are from NodeJS environment, pipenv is same to npm for Node.

Using virtualenv for creating virtual environment

First install virtualenv module with this command: pip install virtualenv
Now you are ready to use virtualenv command to create the desired virtual environment this way: virtualenv venv
For a specific Python version you can use Python’s version during virtual environment creation: virtualenv -p /usr/bin/python2.7 venv

or change the interpreter globally with an env variable in ~/.bashrc:
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
To begin using the virtual environment, it needs to be activated:
source venv/bin/activate

If you are done working in the virtual environment for the moment, you can deactivate it:
deactivate