third-party libraries python ships with lovely standard librarywhich is collection of packages and modules that are available on every machine that runs python howeveryou'll soon find that it doesn' contain everything you need when this happensyou have two optionswrite supporting package yourself use somebody else' code we won' be covering the details about turning your packages into librariesbut if you have problem you need to solve and you don' feel like coding it (the best programmers are extremely lazy and prefer to reuse existingproven coderather than write their own)you can probably find the library you want on the python package index (pypiat you want to installyou can use tool called pip to install it howeverpip does not come with pythonbut python contains useful tool called ensurepipwhich will install itpython - ensurepip this may fail for you on linuxmac osor other unix systemsin which caseyou'll need to become root to make it work on most modern unix systemsthis can be done with sudo python - ensurepip if you are using an older version of python than python you'll need to download and install pip yourselfsince ensurepip doesn' exist you can do this by following the instructions at readthedocs orgonce pip is installed and you know the name of the package you want to installyou can install it using syntax such aspip install requests howeverif you do thisyou'll either be installing the third-party library directly into your system python directoryor more likelyget an error that you don' have permission to do so you could force the installation as an administratorbut common consensus in the python community is that you should only use system installers to install the third-party library to your system python directory