Installing Python
First, let's check whether we have Python installed and, if so, what version we have.
If you are using a Mac, open your Terminal. If you are using Windows, open Command Prompt. For convenience, I will refer to both Terminal and Command Prompt as Terminal throughout the book.
We will need to check whether we have at least Python 3.8 in order to use Django 4. To do so, go to your Terminal and run the following commands.
For macOS, run this:
python3 --version
For Windows, run this:
python --version
This shows the version of Python you have installed. Make sure that the version is at least 3.8. If it isn't, get the latest version of Python by going to https://www.python.org/downloads/ and installing the version for your OS. For Windows, you must select the Add Python 3.* to PATH option, as shown in Figure 1.4:
After the installation, run the command again to check the...