def create_env_error_message(error, show_traceback, using_user_site):
parts = []<EOL>parts.append("<STR_LIT>")<EOL>if not show_traceback:<EOL><INDENT>parts.append("<STR_LIT>")<EOL>parts.append(str(error))<EOL><DEDENT>else:<EOL><INDENT>parts.append("<STR_LIT:.>")<EOL><DEDENT>parts[-<NUM_LIT:1>] += "<STR_LIT:\n>"<EOL>if error.errno == errno.EACCES:<EOL><INDENT>user_option_part = "<STR_LIT>"<EOL>permissions_part = "<STR_LIT>"<EOL>if not using_user_site:<EOL><INDENT>parts.extend([<EOL>user_option_part, "<STR_LIT>",<EOL>permissions_part.lower(),<EOL>])<EOL><DEDENT>else:<EOL><INDENT>parts.append(permissions_part)<EOL><DEDENT>parts.append("<STR_LIT>")<EOL><DEDENT>return "<STR_LIT>".join(parts).strip() + "<STR_LIT:\n>"<EOL>
Format an error message for an EnvironmentError

    It may occur anytime during the execution of the install command.