Installing Python
In this lab, you will install Python 3 on a Windows 11 workstation and verify that Python is functioning correctly from the command line.
Session duration: 30 minutes· Typical launch: ~3 min
Difficulty
Beginner
Lab level
Lab VMs
1
1 Windows
XP Reward
150 XP
On completion
Virtual machines
Lab VMs
Windows
VM 1
Windows
Username / Password
user / password123
Connection type
In-browser RDP / RDP
CPU / RAM
—
Lab instructions
Follow the steps below to complete the lab.
In this task, you will download and install Python 3 on a Windows 11 computer.
- Select the
useraccount from the bottom left. - Enter
password123as the password for theuseraccount. - Open a web browser and navigate to:
https://www.python.org/downloads/ - Download the latest Python 3 release for Windows by clicking the Download Python install manager button.
- Run the Python installer by clicking open file from the pop up download confirmation window or double-click the downloaded file from the Downloads folder.
- On the installer screen click Install Python.
- From the
cmdconsole clickNon the question to Update setting now and press Enter. - From the question on Open Installed apps now type
Nand press Enter. - From the Add commands directory to your PATH now type
Yand press Enter. - From the question to install CPython now type
Yand press Enter. - Wait for the installation to complete.
- When prompted to view help online type
Nand press Enter. - Open a Command Prompt window from the Start menu typing
cmd. - Verify Python installation typing:
Cmd
- Verify pip installation typing:
Cmd
- Start the Python interpreter typing:
Cmd
- Execute the following command:
Python
- Click Check step to complete the lab.