pip
2
总安装量
2
周安装量
#69208
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill pip
Agent 安装分布
trae
2
gemini-cli
2
antigravity
2
claude-code
2
github-copilot
2
codex
2
Skill 文档
pip
pip is the standard package manager for Python. v24+ (2025) focuses on performance and standard compliance (PEP 668).
When to Use
- Python: It is the default.
- Virtual Environments: Always use inside a
venv.
Quick Start
python -m venv .venv
source .venv/bin/activate
pip install requests
pip freeze > requirements.txt
Core Concepts
PyPI
The Python Package Index.
Wheels (.whl)
Pre-compiled binary packages. Much faster to install than Source Distributions (.tar.gz).
PEP 668 (Externally Managed)
Prevents pip install outside venv on modern Linux distros (Debian 12+, Ubuntu 24.04) to protect system packages.
Best Practices (2025)
Do:
- Use
uv: The new hotness.uv pip installis 100x faster than standard pip. Compatible API. - Use
pip-tools: Compilerequirements.intorequirements.txtwith hashes for security. - Always Venv: Never install global packages.
Don’t:
- Don’t use
sudo pip: This breaks your OS.