def METHOD_NAME() -> None:
    """
    Check that the version of pip is above a certain version. This is
    necessary because distributions of Python often come with outdated versions.
    For example, the RHEL7 version of Python 3.6 comes with pip 9, which is
    positively ancient.
    """
    from pip import __version__
    min_pip_version = 19
    version_info = __version__.split(".")
    if int(version_info[0]) >= min_pip_version:
        return
    if input(f"ERT requires pip >= {min_pip_version}. Install it? (Y/n) ") == "y":
        run(
            sys.executable,
            "-m",
            "pip",
            "install",
            "--upgrade",
            f"pip>={min_pip_version}",
        )
    else:
        sys.exit("Please upgrade pip.")