pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
755 stars 297 forks source link

python outputs python #135

Closed stripov1337 closed 2 years ago

stripov1337 commented 2 years ago

PS C:\Users\Story\Desktop\1> python3 get-pip.py Python why?

benda1313 commented 2 years ago

You should run pip install using:

python get-pip.py

pradyunsg commented 2 years ago

This might be due to the Windows store integration? /cc @zooba

zooba commented 2 years ago

It should print out a longer message if it's the redirection stub, telling you that Python isn't installed and how to get it. No idea why the message is being cut short, but I believe it starts with "Python [is not available...]" and so this seems most likely.

The regular installer has only ever added python.exe to PATH. You only get python3 from a Store install, so if @stripov1337 has installed from python.org (or is in a virtual environment) then using python get-pip.py is indeed the right solution.