Third Edition Linux/Manual installation
If you’re running Linux or an old version of macOS, or you just don’t want to use the installer available at helloworldbook3.com, you’ll need to install each of the pieces of software needed for the book yourself.
The things you need are:
- Python 3 (version 3.7.3 or greater)
- PyQt5
- Pygame
- The easygui Python module
- Qt Designer (for Qt 5)
You can download Python from python.org, and a copy of Qt Designer is available here. Once you’ve installed Python, you can use a command called pip
to download the modules you need. (PyQt5, Pygame, and easygui.) Open a Terminal or Command Prompt window and type:
pip install PyQt5 pygame easygui
(Depending on how you installed Python, you may need to run the command in an administrative command prompt, or type “sudo pip install” instead of just “pip install”.)
On some Linux distributions, like Ubuntu, you can use a kind of program called a “package manager” to install this software more easily. The exact command you need depends on your system, but on Ubuntu 19.10, you can type this command to install everything:
sudo apt install python3-pyqt5 python3-pygame python3-easygui qttools5-dev-tools
If you go this route, you don’t need to download anything from the Python website. apt
will do all of the work for you.