managing-python-dependencies

Detects project dependency managers and installs Python packages with the correct tooling.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/SmileAfterBurn/pani-dumka-ai --skill managing-python-dependencies-smileafterburn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/SmileAfterBurn/pani-dumka-ai/tree/main/.gemini/skills/managing-python-dependencies
Command: npx skills add https://github.com/SmileAfterBurn/pani-dumka-ai --skill managing-python-dependencies-smileafterburn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Installing Python packages with a global pip install breaks project isolation and conflicts with existing dependency managers. This Skill ensures every package installation respects the project's established tooling, preventing environment corruption and inconsistent dependency states. ## Core Features & Use Cases - Dependency Manager Detection: Scans the workspace for signal files (uv.lock, pyproject.toml, Pipfile, environment.yml, requirements.txt) in priority order to identify the correct tool. - Tool-Specific Commands: Provides the correct install and setup commands for uv, Poetry, Pipenv, Conda, and venv + pip. - Safe Defaults: Falls back to an isolated .venv with explicit .venv/bin/pip paths and requirements.txt freezing when no manager is detected. - Use Case: When asked to add pandas to a project containing a uv.lock file, the Skill runs uv add pandas instead of a global pip install pandas, keeping the lockfile consistent. ## Quick Start Check this project's dependency manager and install the requests package using the correct tool.

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 breaking my project environment?▼

First detect the project's dependency manager by checking for signal files like uv.lock, pyproject.toml, Pipfile, or requirements.txt. Then use that tool's install command, such as `uv add` or `poetry add`, instead of a global `pip install`.

How to choose between uv, Poetry, Pipenv, and Conda for Python dependencies?▼

Do not choose manually; follow the project's existing tooling. Check for uv.lock or [tool.uv] first, then [tool.poetry] in pyproject.toml, then Pipfile, then environment.yml, and default to venv plus pip with requirements.txt if none exist.

Should I ever run pip install globally in a Python project?▼

No, global pip installs are prohibited because they bypass project isolation and corrupt dependency state. Always use the project's detected manager or an explicit virtual environment path like `.venv/bin/pip`.

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

Default to venv plus pip: create an environment with `python3 -m venv .venv`, install packages via `.venv/bin/pip install`, and preserve state by running `.venv/bin/pip freeze > requirements.txt`.

Why does mixing pip with Poetry or uv cause dependency problems?▼

Mixing tools bypasses the lockfile maintained by Poetry or uv, causing version drift and unreproducible environments. Always use the manager's own add command so the lockfile stays synchronized with installed packages.