Skip to main content

Installing Pipenv

ยท 2 min read
Yahya Gilany

Purpose of this postโ€‹

If you had issues installing pipenv on your Windows computer, This guide is for you.

Instructionsโ€‹

Pre-conditionsโ€‹

  • You have Python 3.11 installed on your computer.
  • You have pip installed on your computer.
  • You're able to access pip from the command line.

Installing PipEnvโ€‹

  • From your command line, run the following command:
pip uninstall virtualenv
pip uninstall pipenv
  • This command will uninstall any existing versions of PipEnv and VirtualEnv that you have installed on your computer.
  • Run the following command:
pip install --user pipenv
  • This command will install PipEnv on your computer.
  • You may get a warning that says that certain scripts and packages are not in your PATH. Copy that PATH and add it to your PATH environment variable.
  • For the terminal to recognize the new PATH, you may need to restart your terminal (close and open).

Post-conditionsโ€‹

To confirm that PipEnv is installed, run the following command:

pipenv --version

Using PipEnvโ€‹

For each assignment that you work on, you install its dependencies using the following command:

pipenv install
  • This command will install all the dependencies that are listed in the Pipfile.
  • It will also create a virtual environment for the project.

To learn more about pipenv: