def find_pip(pip_version=None, python_version=None):
pip_exe = "<STR_LIT>"<EOL>try:<EOL><INDENT>context = create_context(pip_version, python_version)<EOL><DEDENT>except BuildError as e:<EOL><INDENT>from rez.backport.shutilwhich import which<EOL>pip_exe = which("<STR_LIT>")<EOL>if pip_exe:<EOL><INDENT>print_warning(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % pip_exe)<EOL>context = None<EOL><DEDENT>else:<EOL><INDENT>raise e<EOL><DEDENT><DEDENT>return pip_exe, context<EOL>
Find a pip exe using the given python version.

    Returns:
        2-tuple:
            str: pip executable;
            `ResolvedContext`: Context containing pip, or None if we fell back
                to system pip.