shutil.which for those not using Python 3.3 yet. ... Usage First, install the package: pip install shutilwhich Importing the package: import shutilwhich will monkey-patch the shutil package, so from that point on you can simply import the which function: