Skip to content

Instantly share code, notes, and snippets.

@itavero
Created October 5, 2014 15:39
Show Gist options
  • Select an option

  • Save itavero/6924e410bc93cfb75ea1 to your computer and use it in GitHub Desktop.

Select an option

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..

@michealespinola
Copy link

When reliability and cross-platform portability matter, don't use substitutions, and use a slightly more available tool

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

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