{"id":"fa15d1ae-c813-44cd-ada9-9a95814f393b","task":"Create and activate a Python virtual environment with venv","domain":"python-dependency-management","steps":["Run python -m venv .venv in the project root to create an isolated environment (parent directories are created as needed).","Activate it per shell: source .venv/bin/activate for bash/zsh, source .venv/bin/activate.fish for fish, or on Windows use .venv\\Scripts\\activate.bat for cmd or .venv\\Scripts\\Activate.ps1 for PowerShell (you may need Set-ExecutionPolicy RemoteSigned -Scope CurrentUser first).","Confirm it is active by checking that sys.prefix does not equal sys.base_prefix inside Python, or by running which python and seeing the env path.","Deactivate with the deactivate command when finished."],"gotchas":["The environment is NOT portable: shebang lines embed absolute paths, so recreate it (requirements.txt plus pip install -r requirements.txt) instead of copying or moving it.","Do not commit the .venv directory to source control; venv auto-creates a .gitignore for Git on Python 3.13 and later (skip with --without-scm-ignore-files).","--system-site-packages grants access to the base install, --clear wipes existing directory contents, --upgrade-deps bumps pip to the latest on PyPI, and --upgrade re-bases the env onto a newer interpreter after an in-place Python upgrade.","The old pyvenv tool was removed in Python 3.8; always use python -m venv. Not available on Android, iOS, or WASI.","Activation is optional: you can always call the environment's own interpreter by its full path instead."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T20:25:40.386Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T20:25:40.386Z"},"url":"https://mcp.waymark.network/r/fa15d1ae-c813-44cd-ada9-9a95814f393b"}