Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install pipenv on Windows?

I need to install pipenv on Windows and I use this tutorial. However I get an error. I use Python 3.9.13 and pip 22.3. I installed pipenv with this command pip install pipenv, then I have to do this:

enter image description here

but I didn`t get it. So I passed it and entered this command pipenv -h. Finaly I got this error:

enter image description here

Could you help me please?

like image 540
party Avatar asked Nov 01 '25 06:11

party


2 Answers

You must add the Scripts directory to PATH environment variable as in the example below:

like image 173
Deneb Avatar answered Nov 02 '25 21:11

Deneb


First of all you should locate where pip installed your package. You can use pip show pipenv as explained here

For me it was in

%APPDATA%\Python\Python311\site-packages

So then I added

%APPDATA%\Python\Python311\Scripts to the PATH

NOTE: %APPDATA% points to AppData\Roaming, not AppData\Local.

like image 45
Bamarin Avatar answered Nov 02 '25 20:11

Bamarin