def check_dependencies():

    if not HAS_VIRTUALENV:
        raise Exception('Virtualenv not found. ' + \
                         'Try installing python-virtualenv')
    print 'done.'
Make sure virtualenv is in the path.
dataset/ETHPy150Open osrg/ryu/tools/install_venv.py/check_dependencies