Complete the lab with a runnable Python project with an isolated virtual environment.
Guided Lab: Install and Run Python in Python Fundamentals
Python Fundamentals — Install and Run Python lab: Install or verify Python, create a virtual environment, run a small script from the terminal, deactivate the environment, then reactivate it and rerun the same script.
Know what success looks like before you begin
Save verification evidence: Python and pip version output, the active virtual environment, and successful script output.
- I completed the module-specific practice task.
- I produced a runnable Python project with an isolated virtual environment.
- I saved Python and pip version output, the active virtual environment, and successful script output.
- I diagnosed and corrected one realistic Install and Run Python failure.
Stop before using production credentials, important data, shared permissions, live infrastructure, or destructive commands that are not required by the lab.
Jump to a section
Know the problem and the evidence you need
Install or verify Python, create a virtual environment, run a small script from the terminal, deactivate the environment, then reactivate it and rerun the same script.
a runnable Python project with an isolated virtual environment
Complete the task, verify Python and pip version output, the active virtual environment, and successful script output, then diagnose one failure that is specific to Install and Run Python.
Install a supported Python 3 release, choose the correct command for the operating system, verify Python and pip, create a virtual environment, run a script, and fix PATH or interpreter problems.
Prepare before changing anything
Have this ready
- Install Python 3 on Windows, macOS, or Linux and reopen the terminal after installation.
- Run python --version, python3 --version, and py --version as appropriate to identify the available command.
- Check pip through the interpreter, for example python -m pip --version or python3 -m pip --version.
Run the lab
Complete one check at a time. Record the evidence before moving on.
Match the evidence to the next action
The expected result appears and the boundary case behaves correctly
Save the result and continue to the module checkpoint.
The normal case works but the failure or boundary case does not
Return to the diagnostic step and inspect the module-specific state or output before changing more code.
The result changes between runs
Compare the relevant input, dependency, configuration, data, state, or runtime version for this module.
Choose the next action
Complete the lab when you can reproduce the working result, explain the important module decision, and recover from the tested failure.
Confirm the evidence you produced
Finished record: a runnable Python project with an isolated virtual environment
- I completed the module-specific practice task.
- I produced a runnable Python project with an isolated virtual environment.
- I saved Python and pip version output, the active virtual environment, and successful script output.
- I diagnosed and corrected one realistic Install and Run Python failure.