managing-environments

Create, activate, and validate venv and Conda environments for Python projects.

17|2|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/Delphine-L/claude_global --skill managing-environments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-environments
Source: https://github.com/Delphine-L/claude_global/tree/main/skills/project-management/managing-environments
Command: npx skills add https://github.com/Delphine-L/claude_global --skill managing-environments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Best practices for developing and maintaining isolated development environments for Python projects. This skill helps prevent package conflicts, ensures reproducibility, and promotes safe installations.

Core Features & Use Cases

  • Environment detection: Check for active venv or Conda environment and report status before any installation.
  • Guided installation prompts: Always ask for user confirmation before proceeding with package installation.
  • Project isolation: Encourage per-project environments and document setup for reproducibility.

Quick Start

Start by evaluating the workspace and detecting the current environment. Then decide whether to create a new venv or Conda environment and activate it before installing dependencies. Example steps include creating and activating a venv with python -m venv .venv and source .venv/bin/activate (Linux/Mac) or conda create -n project python=3.x followed by conda activate project, then install dependencies.

Frequently Asked Questions about managing-environments

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

FAQPage Schema
How do I prevent package conflicts when installing Python dependencies?

Create isolated development environments using venv or Conda to prevent package conflicts. Each project gets its own environment, ensuring dependencies don't interfere with system packages or other projects. Activate the environment before installing to keep installations contained and reproducible.

What's the best way to set up a Python venv for a new project?

Run `python -m venv .venv` to create an isolated environment, then activate it with `source .venv/bin/activate` (Linux/Mac) or the Windows equivalent. After activation, install project dependencies safely within that isolated space without affecting other projects.

How do I check if a Python environment is active before installing packages?

Environment detection checks whether venv or Conda is currently active and reports its status before installation. Always confirm the active environment matches your project before proceeding with package installation to avoid installing into the wrong location.

When should I use Conda instead of venv for managing Python environments?

Both venv and Conda create isolated Python environments. Conda manages system-level dependencies alongside Python packages, making it better for complex scientific stacks. Venv is lighter and sufficient for pure-Python projects. Choose based on your project's dependency complexity and platform needs.

How do I resolve import errors caused by environment mismatches?

Import issues often stem from installing packages in the wrong environment or missing installations. Validate your active environment, verify packages are installed there, and recreate the environment from documented dependencies to restore reproducibility and resolve import failures.

Why should I document my Python environment setup?

Documenting environment creation steps—venv commands, Python versions, and dependency lists—ensures reproducibility across team members and machines. This prevents 'works on my machine' problems and lets others replicate your exact setup and dependency versions.