python-venv

Create and manage Python virtual environments and dependencies from requirements files.

35|13|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/wildwasser/opencode-agents --skill python-venv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-venv
Source: https://github.com/wildwasser/opencode-agents/tree/main/.opencode/skills/python-venv
Command: npx skills add https://github.com/wildwasser/opencode-agents --skill python-venv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create and manage Python virtual environments and dependencies for projects.

Core Features & Use Cases

  • Create and manage a dedicated virtual environment in the project folder (e.g., .venv) to isolate dependencies.
  • Install and update dependencies from requirements.txt or pyproject.toml, ensuring reproducible setups.
  • Use the environment's Python and pip executables to run and test code, avoiding system-wide Python conflicts.

Quick Start

Create a new virtual environment in your project and install dependencies using the project's requirements file.

Frequently Asked Questions about python-venv

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Python virtual environment to isolate project dependencies?

Python virtual environments isolate project dependencies by creating a dedicated directory. This process sets up a clean environment using the venv's Python and pip executables, preventing system-wide conflicts and ensuring reproducible setups.

How do I install Python dependencies from requirements.txt or pyproject.toml into a venv?

Installing Python dependencies from requirements.txt or pyproject.toml uses the venv's pip executable. This ensures packages are installed directly into the isolated environment, maintaining reproducible setups without affecting the system-wide Python installation.

Why should I use a virtual environment for my Python project setup?

A virtual environment provides dependency isolation for your Python project setup. By using a dedicated directory, it avoids system-wide Python conflicts, ensuring that project dependencies remain contained, manageable, and reproducible across different setups.

Can I update and freeze Python dependencies inside an isolated venv?

You can update and freeze Python dependencies inside an isolated venv using supported commands. Freezing captures the exact installed package versions into a requirements file, while updating ensures the environment has the latest specified packages.

Does Python venv management work with both requirements.txt and pyproject.toml files?

Python venv management supports installing and updating dependencies from both requirements.txt and pyproject.toml files. This compatibility ensures reproducible environments regardless of the specified dependency format used by the project.

What are the limitations of using a dedicated .venv directory for Python environment isolation?

Using a dedicated .venv directory requires all operations to run through the venv's specific Python and pip executables. The environment must be manually activated to function correctly, meaning system-level Python scripts cannot access its isolated dependencies.