Python Modules

I find it convenient to keep all my personal Python Modules in a directory like D:\Development\Python\Modules, this can then be added as environment variable called PYTHONPATH to the System Environment Variables. Windows will add it to the existing Python path, in Linux there are more ways to do this, see python - Permanently add a directory to PYTHONPATH - Stack Overflow.

Using Pip

To install pip on Linux, specifically Debian this is done as follows:
sudo apt-get install python-pip
sudo apt-get install python3-pip
Once this is done you can use either pip (for Python 2.x) or pip3 (for Python 3.x), the list option will show you what is installed, so pip3 list will list all installed pip modules and their version.

An alternative for Python 3.4 and later is to use ensurepip — Bootstrapping the pip installer — Python 3.7 documentation which should install the pip that shipped with your version of Python.

To install something with pip you can do the following:
pip install requests
Which as the command suggest, installs the requests module. If you need a specific version then use the following:
pip install requests==2.15.1
In general you might need to upgrade a module, so use:
pip install --upgrade requests
These examples are all with "requests", however you can use a different module name.

Module Information

Start the Python interpreter via "python" or "python3" then for the requests module you can do the following:
import requests
This will output something like "2.20.1".

Useful Modules

It is interesting to note that some of the standard modules suggest using "requests" module mentioned below, so this is a highly recommended one! If you need to find a module then look at PyPI – the Python Package Index · PyPI all of which can be installed with pip.

maya · PyPI - for date/time handling
requests · PyPI - for simple HTTP tasks
requests-html · PyPI - for parsing HTML like a human!
requests-oauthlib · PyPI - for OAuth stuff