managing-python-dependencies

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

1|Updated Jul 4, 2026
One-click install
npx skills add https://github.com/trungenglish/SHOPWISE --skill managing-python-dependencies-trungenglish
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/trungenglish/SHOPWISE/tree/main/.agents/skills/managing-python-dependencies
Command: npx skills add https://github.com/trungenglish/SHOPWISE --skill managing-python-dependencies-trungenglish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Installing Python packages with a global pip install breaks project isolation and conflicts with existing tooling like uv, Poetry, or Conda. This Skill ensures every package installation respects the dependency manager already established in the project. ## 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 Install Commands: Maps each detected manager to its proper install and setup commands, such as uv add, poetry add, or pipenv install. - Safe Default Workflow: Falls back to an isolated .venv with explicit .venv/bin/pip paths and requirements.txt freezing when no manager is found. - Use Case: When asked to add requests to a project containing a uv.lock file, the Skill runs uv add requests instead of a global pip install, keeping the lockfile consistent. ## Quick Start Add the pandas package to this Python project using the dependency manager it already uses.

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`, `poetry add`, or `pipenv install`. If no manager exists, create a `.venv` and install with the explicit path `.venv/bin/pip install <package>`.

How do I know which Python dependency manager a project uses?▼

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

What is the difference between uv, Poetry, and Pipenv for installing packages?▼

uv uses `uv add` and `uv sync`, Poetry uses `poetry add` and `poetry install`, and Pipenv uses `pipenv install`. Each maintains its own lockfile, so you must use the manager the project already adopted rather than mixing tools.

Can I use pip install in a project that already uses Poetry or uv?▼

No. Overriding an existing dependency manager with pip bypasses its lockfile and corrupts the environment state. Always use the detected manager's own add command to keep dependencies consistent.

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

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