After installing Python, simply open a terminal and type the following command:
pip install pipenv
By the above command we can install pipenv. ,Then, you will want to use pipenv to create a virtual environment.
# initialize the virtual environment
pipenv --three
Next for activating pipenv just run the bellow commands
#for unix system
source $(pipenv --venv)/bin/activate
#for windows source
$(pipenv --venv)/Scripts/activate
By the above steps we can easily install and activate pipenv . But one more thing is for installing any package first you need to install using pip and then adding to pipenv by pipenv install package-name.