def is_pip_installed():
    try:
        subprocess.Popen(['pip'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open ros-infrastructure/rosdep/src/rosdep2/platforms/pip.py/is_pip_installed