Skip to content

Instantly share code, notes, and snippets.

Created Oct 5, 2014
What would you like to do?
One liner to install Python PIP
python < <(curl -s
Copy link

mathieucaroff commented Jul 17, 2018

C:\WINDOWS\system32>python < <(curl -s
< was unexpected at this time.

But cmd.exe supports piping:

C:\WINDOWS\system32>curl -s | python
Collecting pip

So use curl -s | python. It should also work on linux.

Copy link

TigranKhachatryan0 commented Sep 4, 2020

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