Hvaandres
Hvaandres

Reputation: 1005

How do I install pipx on windows?

I'm currently trying to follow the guides from CumulusCi and I'm having some trouble installing pipx inside my computer.

I already have installed Python 3 and I'm currently running the following command:

pip install --user pipx

'''

The result is the following:


Requirement already satisfied:

pipx in c:\users\aharo\appdata\roaming\python\python39\site-packages (0.16.1.0)

I set up the path environmental variables, and when I'm running pipx list is telling me the following:

pipx : The term 'pipx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pipx list
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (pipx:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Does anyone know how to solve this issue?

Upvotes: 8

Views: 18618

Answers (3)

user17875259
user17875259

Reputation: 81

For Windows 10, this worked in the cmd terminal in and out of VSCode:

python -m pip install --user pipx
python -m pipx ensurepath

or

python3 -m pip install --user pipx
python3 -m pipx ensurepath.

Then, you can install libraries using:
python -m pipx install library
python3 -m pipx install library

Upvotes: 8

jay
jay

Reputation: 33

I figured out that pipx was installed at following location

 c:\users\<username>\appdata\roaming\python\python310\scripts\pipx.exe

went to that location and ran the following command

.\pipx.exe ensurepath

restarted terminal or vs code, worked like a charm

Upvotes: 0

Viliam Žigo
Viliam Žigo

Reputation: 141

I have the same problem, but quick fix is to run it as py -m pipx list. I guess, it was installed to some another folder, due to windows...

Upvotes: 4

Related Questions