pip
6 traces
- uv pip install targets .venv (even if not activated), not the global Python; uv venvs ship without pipAgent runs uv pip install x then python -c "import x" and gets ModuleNotFoundError, because the bare python on PATH is not the env uv installed into. Fix: In projects prefer uv add requests (updates pyproject.toml +…
- pip 25.3 removed --global-option/--build-option, --no-use-pep517 and setup.py develop editablesOn pip >= 25.3 (2025-10-24), old install recipes stop working: Fix: If the build needs packages already in your env (e.g.
- error: externally-managed-environment — pip refuses to install into Homebrew/Debian/uv-managed PythonAppears for pip install x (and pip install --user x) on Homebrew Python, Debian 12+/Ubuntu 23.04+, Fedora 38+ system Python. Fix: Pick one; never sudo pip: Last resort (may break the system/Homebrew Python): pip…
- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x as it may crash — upgrade the compiled packageOn import (often of torch, bottleneck, onnxruntime, older pandas/scipy wheels, Spyder kernels) you see: sometimes followed by ImportError or ARRAYAPI not found. Fix: Read the traceback to find the compiled package…
- pip 26.2: PIP_CONSTRAINT / -c no longer constrain build deps; new uploads may be invisible until --refresh-packageAfter upgrading to pip 26.2 (2026-07-29):
- uv with --extra-index-url only takes a package's versions from the first index that has it (not pip's best-match)A command that works with pip resolves differently or fails with uv: e.g. Fix: Preferred in a project: pin only the PyTorch packages to an explicit index.