def install_package_command(package_name):
    '''install python package from pip'''
    #TODO refactor python logic
    if sys.platform == "win32":
        cmds = 'python -m pip install --user {0}'.format(package_name)
    else:
        cmds = 'python3 -m pip install --user {0}'.format(package_name)
    call(cmds, shell=True)
def install_package_command ( package_name ) : if sys . platform == "win32" : cmds = 'python -m pip install --user {0}' . format ( package_name ) else : cmds = 'python3 -m pip install --user {0}' . format ( package_name ) call ( cmds , shell = True )
install python package from pip