managing-python-dependencies

Detects the project's Python dependency manager and installs packages with the correct tool.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/tottenjordan/me-skittles --skill managing-python-dependencies-tottenjordan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/tottenjordan/me-skittles/tree/main/gemini/managing-python-dependencies
Command: npx skills add https://github.com/tottenjordan/me-skittles --skill managing-python-dependencies-tottenjordan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agents often run a global pip install that pollutes the system environment or overrides a project's established tooling. This Skill enforces detection of the existing dependency manager before any package installation, keeping environments reproducible and consistent. ## Core Features & Use Cases - Manager Detection: Checks for uv.lock, pyproject.toml, Pipfile, environment.yml, and requirements.txt in priority order to identify uv, Poetry, Pipenv, Conda, or venv + pip. - Correct Install Commands: Maps each detected tool to its proper install and setup commands, such as uv add <package> or poetry add <package>. - Safe Default Workflow: Falls back to an isolated .venv with explicit .venv/bin/pip paths and pip freeze > requirements.txt when no manager is found. - Use Case: When asked to add requests to a repository containing a uv.lock file, the agent runs uv add requests instead of a global pip install requests. ## Quick Start Before installing any Python package, inspect the workspace for dependency manager signal files and use the matching tool's install command instead of a global pip install.

Frequently Asked Questions about managing-python-dependencies

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

FAQPage Schema
How do I install Python packages without using global pip?▼

Detect the project's dependency manager first, then use its install command such as `uv add <package>` or `poetry add <package>`. If no manager exists, create a `.venv` and install with the explicit `.venv/bin/pip` path.

How to detect which Python dependency manager a project uses?▼

Check for signal files in priority order: `uv.lock` or `[tool.uv]` indicates uv, `[tool.poetry]` indicates Poetry, `Pipfile` indicates Pipenv, `environment.yml` indicates Conda, and `requirements.txt` alone indicates venv + pip.

uv vs Poetry vs pip for Python dependency management?▼

The rule is not to choose freely but to respect what the project already uses. uv projects use `uv add`, Poetry projects use `poetry add`, and projects with only `requirements.txt` use `.venv/bin/pip install`.

Why is running pip install globally a problem?▼

Global pip installs bypass the project's virtual environment and dependency manager, causing version conflicts and unreproducible environments. The skill prohibits global installs and overriding an existing dependency manager with a different one.

What should I do when a Python project has no dependency manager?▼

Default to venv + pip: create the environment with `python3 -m venv .venv`, install packages via `.venv/bin/pip install <package>`, and preserve state with `.venv/bin/pip freeze > requirements.txt`.