def load_requirements(requirements_path):
    """Loads the package requirements from a ``requirements.txt`` file on disk.

    Comments and extra whitespace are automatically stripped.

    Args:
        requirements_path: the path to a requirements file

    Returns:
        a list of requirement strings
    """
    requirements = []
    with open(requirements_path, "rt") as f:
        for line in f:
            line = _strip_comments(line)
            if line:
                requirements.append(line)

    return requirements
Loads the package requirements from a ``requirements.txt`` file on disk.

    Comments and extra whitespace are automatically stripped.

    Args:
        requirements_path: the path to a requirements file

    Returns:
        a list of requirement strings
    
fiftyone/core/utils.py