def protect_pip_from_modification_on_windows(modifying_pip):
pip_names = [<EOL>"<STR_LIT>",<EOL>"<STR_LIT>".format(sys.version_info[<NUM_LIT:0>]),<EOL>"<STR_LIT>".format(*sys.version_info[:<NUM_LIT:2>])<EOL>]<EOL>should_show_use_python_msg = (<EOL>modifying_pip and<EOL>WINDOWS and<EOL>os.path.basename(sys.argv[<NUM_LIT:0>]) in pip_names<EOL>)<EOL>if should_show_use_python_msg:<EOL><INDENT>new_command = [<EOL>sys.executable, "<STR_LIT>", "<STR_LIT>"<EOL>] + sys.argv[<NUM_LIT:1>:]<EOL>raise CommandError(<EOL>'<STR_LIT>'<EOL>.format("<STR_LIT:U+0020>".join(new_command))<EOL>)<EOL><DEDENT>
Protection of pip.exe from modification on Windows

    On Windows, any operation modifying pip should be run as:
        python -m pip ...