def check_dependencies():
    print("Checking required dependencies...")
    for cmd, url in [("wget", "http://www.gnu.org/software/wget/")]:
        try:
            retcode = subprocess.call([cmd, "--version"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        except OSError:
            retcode = 127
        if retcode == 127:
            raise OSError("gemini requires %s (%s)" % (cmd, url))
        else:
            print(" %s found" % cmd)
Ensure required tools for installation are present.
dataset/ETHPy150Open arq5x/gemini/gemini/scripts/gemini_install.py/check_dependencies