Skip to content

Instantly share code, notes, and snippets.

@itavero
Created October 5, 2014 15:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itavero/6924e410bc93cfb75ea1 to your computer and use it in GitHub Desktop.
Save itavero/6924e410bc93cfb75ea1 to your computer and use it in GitHub Desktop.
One liner to install Python PIP
python < <(curl -s https://bootstrap.pypa.io/get-pip.py)
@mathieucaroff
Copy link

C:\WINDOWS\system32>python < <(curl -s https://bootstrap.pypa.io/get-pip.py)
< was unexpected at this time.

But cmd.exe supports piping:

C:\WINDOWS\system32>curl -s https://bootstrap.pypa.io/get-pip.py | python
Collecting pip
...

So use curl -s https://bootstrap.pypa.io/get-pip.py | python. It should also work on linux.

@TigranKhachatryan0
Copy link

But..Windows doesn't have curl, and it's PowerShell version is quite different..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment