Install pipenv Windows

Summary: in this tutorial, you’ll learn how to install the pipenv packaging tool on Windows.


Before installing the pipenv tool, you need to have Python and pip tool installed on your computer.

First, open Command Prompt or Windows Powershell and type the following command:

python -V

If you see the Python version like the following:

Python 3.8.5
Code language: CSS (css)

…then you already have Python installed on your computer. Otherwise, you need to install Python first.

Second, use the following command to check if you have the pip tool on your computer:

pip -V

It’ll return something like this:

pip 20.2.4 from C:\Users\<username>\AppData\Roaming\Python\Python38\site-packages\pip (python 3.8)I
Code language: CSS (css)

Note that the <username> is the user that you use to login to your Windows.

Installing pipenv on Windows

First, use the following command to install pipenv tool:

pip install pipenv

Second, replace your <username> in the following paths and add them to the PATH environment variable:

c:\Users\<username>\AppData\Roaming\Python\Python38\Site-Packages C:\Users\<username>\AppData\Roaming\Python\Python38\Scripts
Code language: HTML, XML (xml)

Third, type the following command to check if the pipenv installed correctly:

pipenv -h

If it shows the following output, then you’ve successfully installed the pipenv tool successfully.

Usage: pipenv [OPTIONS] COMMAND [ARGS]... ...
Code language: CSS (css)

However, if you see the following message:

pipenv shell 'pipenv' is not recognized as an internal or external command, operable program or batch file.
Code language: JavaScript (javascript)

Then you should check the step 2 to see if you have already added the paths to the PATH environment variable.

In this tutorial, you have learned how to install the pipenv tool on your Windows computer.

Did you find this tutorial helpful ?