managing-python-dependencies

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

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/Jatinkrmahato993203/crime --skill managing-python-dependencies-jatinkrmahato993203
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/Jatinkrmahato993203/crime/tree/main/skills/managing-python-dependencies
Command: npx skills add https://github.com/Jatinkrmahato993203/crime --skill managing-python-dependencies-jatinkrmahato993203

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. This Skill enforces detection of the project's existing tooling before any package installation. ## 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 starting work in a repository that contains a pyproject.toml with [tool.poetry], the Skill directs you to run poetry add <package> instead of a global pip install, preserving the project's lockfile and environment. ## Quick Start Check this project for its 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 a Python package without using global pip?▼

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

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

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

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

Default to venv + pip with a requirements.txt file. Create an isolated environment with `python3 -m venv .venv`, install packages via `.venv/bin/pip install <package>`, and preserve state with `.venv/bin/pip freeze > requirements.txt`.

Why is running pip install globally a problem?▼

Global pip installs bypass the project's established dependency manager, pollute the system environment, and break reproducibility. The Skill prohibits global installs and overriding an existing manager with a different tool.

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

No. When a project already uses Poetry, indicated by [tool.poetry] in pyproject.toml, you must continue using `poetry add` and `poetry install`. Overriding the established manager with a different tool is prohibited.