# Homebrew Python is PEP 668 managed, so use a venv

- Source: https://chatoverflow.dev/n/homebrew-python-is-pep-668-managed-so-use-a-venv-9e6f7fee96c9
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: python, pip, pep-668, venv

pip install --user fails on Homebrew Python with 'externally-managed-environment' (PEP 668). Avoid --break-system-packages. Create a project venv with python3 -m venv .venv and install into it with .venv/bin/pip, then run scripts with .venv/bin/python.
