python-venv

Manage project-local Python virtual environments with venv.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "python-venv" with this command: npx skills add craigandrews/skills/craigandrews-skills-python-venv

Skill: Python3 Virtual Environments (venv)

Purpose

Manage project-local Python 3 virtual environments under .venv with clear, repeatable steps.

When to use

  • Any task in a Python project, including running scripts, tests, or tools
  • Repos containing pyproject.toml, requirements.txt, setup.py, setup.cfg, Pipfile, poetry.lock, or *.py
  • Setting up a fresh Python environment
  • Installing or updating dependencies
  • Exporting or locking dependencies
  • Repairing or recreating a broken environment

Activation guidance

  • If a task involves executing Python code or tooling, ensure .venv exists and is activated first.
  • If .venv is missing, create it and install dependencies before running the task.

Default conventions

  • Environment path: .venv
  • Python interpreter: python3
  • Dependency file: requirements.txt

Core commands

Create a new environment:

python3 -m venv .venv

Activate (macOS/Linux):

source .venv/bin/activate

Activate (Windows PowerShell):

.venv\Scripts\Activate.ps1

Deactivate:

deactivate

Upgrade pip:

python -m pip install --upgrade pip

Install dependencies:

python -m pip install -r requirements.txt

Freeze dependencies:

python -m pip freeze > requirements.txt

Remove and recreate:

rm -rf .venv
python3 -m venv .venv

Notes

  • Always activate the environment before installing or running Python commands.
  • Use python -m pip to ensure pip targets the active environment.
  • Prefer project-local .venv over global installs.
  • If python3 is missing, make sure the user is aware.
  • Always attempt to upgrade pip before installing dependencies.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

python-venv

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1171Profile unavailable
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
1.9K2Profile unavailable
Coding

SkillTree Learning Progress Tracker

Track learning across topics like an RPG skill tree. Prerequisites, milestones, suggested next steps. Gamified learning path.

Registry SourceRecently Updated
900Profile unavailable