#NEWLINE# def install_package( self , name , version ) : #NEWLINE# #INDENT# if ( ( name == 'pip' ) or ( not version ) ) : #NEWLINE# #INDENT# check_call ( [ self . pip_binary_path , 'install' , '--upgrade' , name ] , stdout = PIPE , stderr = STDOUT ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# check_call ( [ self . pip_binary_path , 'install' , '{0}=={1}' . format ( name , version ) ] , stdout = PIPE , stderr = STDOUT )