def install_pip(python_cmd='python', use_sudo=True):
 with cd('/tmp'):
  download(GET_PIP_URL)
  command = ('%(python_cmd)s get-pip.py' % locals())
  if use_sudo:
   run_as_root(command, pty=False)
  else:
   run(command, pty=False)
  run('rm -f get-pip.py')

def install_pip ( python_cmd = 'python' , use_sudo = True ) : with cd ( '/tmp' ) : download ( GET_PIP_URL ) command = ( '%(python_cmd)s get-pip.py' % locals ( ) ) if use_sudo : run_as_root ( command , pty = False ) else : run ( command , pty = False ) run ( 'rm -f get-pip.py' )
install the latest version of pip_ .