pyenv

Detect Python versions and create or activate Conda environments.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fancive/claude-skills --skill pyenv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyenv
Source: https://github.com/fancive/claude-skills/tree/main/skills/pyenv
Command: npx skills add https://github.com/fancive/claude-skills --skill pyenv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setup Python projects with local Conda environments to save disk space and avoid unnecessary venvs.

Core Features & Use Cases

  • Detects Python version from user input or common config files (.python-version, pyproject.toml, setup.py) and selects or creates a matching Conda environment.
  • Activates an existing environment or creates a new one and prints the activation command for the terminal.
  • Enforces policy to never create .venv and prioritizes Conda environments for reproducibility and space efficiency.
  • Use Case: Quickly align multiple Python projects to their own Conda environments to reduce duplication and improve isolation.

Quick Start

Configure a local Conda environment for your Python project.

Frequently Asked Questions about pyenv

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

FAQPage Schema
How do I set up a Python project with a local Conda environment?

Setting up a Conda environment involves detecting the Python version from files like pyproject.toml or user input, then creating or activating a matching environment and printing the activation command for the terminal.

How does Conda save disk space compared to virtualenv for Python environments?

Conda saves disk space compared to virtualenv by avoiding the creation of duplicate .venv directories. It enforces a policy to never create .venv and prioritizes Conda environments to improve isolation and reduce unnecessary duplication across multiple projects.

Do I need Conda installed locally to configure Python environments this way?

Yes, you need Conda installed locally. The tool requires a local Conda installation to detect Python versions, create or activate environments, and manage dependency installation reproducibly.

What is the best way to detect the Python version required for a project?

The best way to detect the required Python version is by reading common configuration files like .python-version, pyproject.toml, or setup.py. If these are absent, the tool accepts the Python version directly via user input.

Conda vs virtualenv: which should I use for reproducible Python environments?

Use Conda over virtualenv for reproducible Python environments to save disk space. The tool enforces a policy to never create .venv directories, prioritizing Conda to reduce duplication and improve isolation across projects.