How to do it...

We start by first installing the Python pytz time zone module, using pip. We type the following command in a command processor prompt:

    pip install pytz
In this book, we are using Python 3.6, which comes with the pip module built-in. If you are using an older version of Python, then you may have to install the pip module first.

When successful, we get the following result:

The preceding screenshot shows that the command downloaded the .whl format. If you have not done so, you might have to install the Python wheel module first.

This installed the Python pytz module into the site-packages folder, so now we can import this module ...

Get Python GUI Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.