Curriculum previewThis is not your assigned passport. No identity, answers, or completion progress are stored here.How to start your passport
Mission / Reproducible Python
01 / 0235 active minuteslocal change

Create A Reproducible Python Environment

The training project runs in a dedicated environment whose dependencies are declared in Git while the environment directory itself remains untracked.

Work herelocal / powershell or zsh or bash
  1. 1Understand
  2. 2Do
  3. 3Check
  4. 4Submit
Learn firstConcept, example, trap and recovery

Outcome#

The training project runs in a dedicated environment whose dependencies are declared in Git while the environment directory itself remains untracked.

Concept#

Installing packages globally or into base makes projects interfere with one another and prevents collaborators from reproducing the environment.

Worked Example#

Python runs from the project .venv and Git reports that .venv is ignored.

A correct example uses these decisions:

  • Should .venv be committed? No. It is reproducible local state and must remain ignored.
  • What proves the environment is active? The reported interpreter path is inside the project .venv.

Common Trap#

Creating the environment in Git-tracked files or installing into an unrelated global interpreter.

If Blocked#

Do not repeatedly reinstall into base. Record conda info --envs, the Python path, and the exact error without credentials. Use the reproducible Python lab or ask for help before deleting an existing environment.

Useful references:

Understand Before Accepting AI Output#

An agent may suggest packages that are unnecessary, unmaintained, or fetched from an unapproved source. Review dependency purpose and project declarations before installation.

Do the mission

One bounded attempt

Pass: 80% + every safety item
Action

Create the project virtual environment with the platform-specific command, activate it, and run the interpreter check.

Expected

Python runs from the project .venv and Git reports that .venv is ignored.

Separate practice space

Open this mission's safe practice files

The launcher creates or validates a separate exercise folder. It stops rather than replacing an existing unrelated folder.

Run only the commands for your machine

Step 1windows / powershell
py -3 -m venv .venv

Expected: .venv is created without overwriting another path.

Step 2macos / zsh
python3 -m venv .venv

Expected: .venv is created without overwriting another path.

Step 3linux / bash
python3 -m venv .venv

Expected: .venv is created without overwriting another path.

01Should .venv be committed?
02What proves the environment is active?
Before submitting
Open my real passport first
Preview onlyThis page can be read, but it cannot store or submit an attempt.