def ensure_in_a_virtual_environment():
    """
    Warn users if not in a virtual environment
    """
    import sys
    if hasattr(sys, 'real_prefix'):
        raise UserWarning(
            'aide_design should always be run in a virtual environment to ensurethat all dependencies are correctly installed. Please refer to thereadme for virtual environment setup instructions.'
            )
