Reputation: 11
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
Reputation: 182
For Windows follow these steps:
py -m site --user-site
A sample output can be:
C:\Users\jetbrains\AppData\Roaming\Python\Python37\site-packages
Final path:
C:\Users\jetbrains\AppData\Roaming\Python\Python37\Scripts
Found here
Upvotes: 0
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