Luke Johnston
Luke Johnston

Reputation: 11

how to find PATH for pipenv install

I was installing pipenv from pip 19.3.1 for a python 3.7 project on windows

pip install --user pipenv

I got the expected error of Pipenv not in PATH. However before I was able to copy the appropriate line of code to add to as a PATH variable I closed command prompt accidentally and now I cannot find the variable which I need to add to PATH for Pipenv to function.

How can I find this line?

Upvotes: 0

Views: 5068

Answers (2)

luis martinez
luis martinez

Reputation: 182

For Windows follow these steps:

  1. Run the following command:
py -m site --user-site

A sample output can be:

C:\Users\jetbrains\AppData\Roaming\Python\Python37\site-packages

  1. Replace site-packages with Scripts in this path

Final path:

C:\Users\jetbrains\AppData\Roaming\Python\Python37\Scripts

Found here

Upvotes: 0

phd
phd

Reputation: 94716

On Unix/Linux pip install --user installs packages into ~/.local/lib/pythonX.Y and scripts into ~/.local/bin.

Windows: %APPDATA%Python (lib and Scripts)

See https://pip.readthedocs.io/en/stable/reference/pip_install/#cmdoption-user

Upvotes: 0

Related Questions