def _validate_prefix(prefix, avoid):
    """
    Validate an install prefix.
    """

    if prefix.startswith(avoid):
        rest = prefix[0:len(avoid)]
        return rest != "/" and rest != ""

    return True