managing-python-dependencies

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

1|Updated Aug 30, 2026
One-click install
npx skills add https://github.com/FeexSystems/3WM-SONIK-LABS --skill managing-python-dependencies-feexsystems
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/FeexSystems/3WM-SONIK-LABS/tree/main/.gemini/skills/managing-python-dependencies
Command: npx skills add https://github.com/FeexSystems/3WM-SONIK-LABS --skill managing-python-dependencies-feexsystems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Installing Python packages with a global pip install breaks project isolation and ignores the dependency manager a project already uses, leading to corrupted environments and unreproducible setups. ## Core Features & Use Cases - Dependency Manager Detection: Scans the workspace for signal files like uv.lock, pyproject.toml, Pipfile, environment.yml, and requirements.txt to identify the correct tool in priority order. - 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 pip freeze > requirements.txt when no manager is detected. - Use Case: When asked to add requests to a project containing a Pipfile, the Skill uses pipenv install requests instead of a global pip install. ## 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]` in pyproject.toml means uv, `[tool.poetry]` means Poetry, `Pipfile` means Pipenv, `environment.yml` means Conda, and `requirements.txt` alone means venv plus pip.

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

Default to venv plus pip: run `python3 -m venv .venv`, install packages with `.venv/bin/pip install <package>`, and preserve state with `.venv/bin/pip freeze > requirements.txt`.

Can I switch a Poetry project to pip for installing packages?▼

No. Never override an existing dependency manager with a different one. If a project uses Poetry, always add packages with `poetry add <package>` to keep the lockfile and environment consistent.

Why is running pip install globally a problem?▼

Global pip installs bypass project isolation, can corrupt the system Python environment, and ignore the project's locked dependency versions. Always use the project's detected manager or an isolated virtual environment.