For this recipe, use pip to install a Python third-party library, netifaces, as follows: $ pip install netifaces