parameters: (python_pkg)
docstring: Indicates if am importable package has been installed through pip on
      Ubuntu
docstring_summary: Indicates if am importable package has been installed through pip on
      Ubuntu
docstring_tokens: Indicates if am importable package has been installed through pip on Ubuntu
function: def is_python_package_installed_via_pip_on_ubuntu(python_pkg):
      """Indicates if am importable package has been installed through pip on
      Ubuntu"""
      try:
          pkg_handle = importlib.import_module(python_pkg)
          return is_a_pip_path_on_ubuntu(pkg_handle.__file__)
      except ImportError:
          return False
function_tokens: def is_python_package_installed_via_pip_on_ubuntu ( python_pkg ) : try : pkg_handle = importlib . import_module ( python_pkg ) return is_a_pip_path_on_ubuntu ( pkg_handle . __file__ ) except ImportError : return False