pip install .[dev] installs nothing extra from pyproject.toml
Fix it fast
Most common cause, 1 of 3zsh expands the square brackets before pip ever runs
Put quotes around the target.
python -m pip install -e '.[dev]'
python -m pip install '.[dev,docs]'Short answer
pip install .[dev] breaks in zsh because the brackets are a file pattern (no matches found); quote it: pip install -e '.[dev]'. If pip warns does not provide the extra 'dev', the list sits in [dependency-groups], not extras; run pip install --group dev (pip 25.1+). Poetry group tables install only with poetry install.
Which cause do you have?
List the table headers in pyproject.toml. A [project.optional-dependencies] header means the extra exists and the shell is the suspect; a [dependency-groups] or [tool.poetry.group.dev...] header means dev is a group, not an extra.
grep -nE "^\[(project\.optional-dependencies|dependency-groups|tool\.poetry\.group)" pyproject.tomlThen find the line you see in this list and open its fix:
- 1zsh expands the square brackets before pip ever runs
The command stops at once with zsh: no matches found, and pip prints nothing at all - 2The dev list sits in [dependency-groups], which pip does not treat as an extra
pip finishes, prints does not provide the extra 'dev', and pyproject.toml has a [dependency-groups] table holding dev - 3Poetry keeps dev tools in [tool.poetry.group.dev.dependencies]
The same does not provide the extra warning, and the dev packages are listed under a [tool.poetry.group.dev.dependencies] header
What does the error look like?
zsh: no matches found: .[dev]WARNING: my-project 0.1.0 does not provide the extra 'dev'
Cause 1 of 3
zsh expands the square brackets before pip ever runs
You seeThe command stops at once with zsh: no matches found, and pip prints nothing at all
Check
In zsh, an unquoted .[dev] is a filename pattern, so pip install .[dev] ends with no matches found when no file in the folder fits it. The shell's NOMATCH option turns that miss into an error instead of leaving the text as it was, so pip is never started.
echo $0Fix
Put quotes around the target. The pip reference uses single quotes on Linux and macOS and double quotes on Windows.
python -m pip install -e '.[dev]'
python -m pip install '.[dev,docs]'Verify
pip starts resolving, and the dev tools appear in the installed list afterwards.
python -m pip list | grep -iE "pytest|ruff"Confirmed by github.com
Cause 2 of 3
The dev list sits in [dependency-groups], which pip does not treat as an extra
You seepip finishes, prints does not provide the extra 'dev', and pyproject.toml has a [dependency-groups] table holding dev
Check
uv add --dev writes development tools into a PEP 735 [dependency-groups] table, and Poetry 2 accepts the same table. Those groups stay local to the repository and never become package metadata, so asking pip for a dev extra finds nothing and produces only a warning. Your project installs, but pytest and the linters do not.
python -m pip --versionFix
Install the group with the --group option, which pip added in 25.1. With uv, uv sync installs the dev group by default. If the packages should ship as an optional feature for users, move them into [project.optional-dependencies] instead.
python -m pip install --upgrade pip
python -m pip install -e . --group dev
# or, in a uv project
uv syncVerify
The warning is gone and the group's packages show up in pip list.
python -m pip list | grep -i pytestConfirmed by pip.pypa.io
Cause 3 of 3
Poetry keeps dev tools in [tool.poetry.group.dev.dependencies]
You seeThe same does not provide the extra warning, and the dev packages are listed under a [tool.poetry.group.dev.dependencies] header
Check
Poetry's own group table is read by Poetry alone. pip install --group looks only at [dependency-groups], and the extras syntax looks only at [project.optional-dependencies], so neither sees these packages. Poetry's docs say groups are for development needs, while features that users install belong in extras.
grep -n "tool.poetry.group" pyproject.tomlFix
Run poetry install, which adds every non-optional group. Groups marked optional = true need --with. To stay with plain pip, move the list into a [dependency-groups] table.
poetry install
poetry install --with devVerify
poetry show lists the dev packages, and the test command runs inside Poetry's environment.
poetry run pytest --versionConfirmed by python-poetry.org
How do I stop it coming back?
- Write extras in quotes in the README and every CI step, so the command copies into any shell.
- Choose one place for dev tools, [dependency-groups] or [project.optional-dependencies], and use the matching install command in CI.
- Pin a pip of at least 25.1 in CI images when the workflow relies on --group.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: stegnor.com, Menulo, ShopGo.