code: 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=Truef 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)
docs: install python package from pip