Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Node.js, PHP and APIs

pip install .[dev] installs nothing extra from pyproject.toml

Your error

zsh: no matches found: .[dev]1 more line it can show

Fix it fast

Most common cause, 1 of 3

zsh expands the square brackets before pip ever runs

Put quotes around the target.

Fix
python -m pip install -e '.[dev]'
python -m pip install '.[dev,docs]'
Did this fix it?
Full steps for this cause: check, fix, verify

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.

  • Applies to pip 26.3, uv 0.13, Poetry 2.5, Python 3.10-3.15
  • Updated
  • By Maaz Zindani, Senior Software Engineer

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.

Run this first
grep -nE "^\[(project\.optional-dependencies|dependency-groups|tool\.poetry\.group)" pyproject.toml

Then find the line you see in this list and open its fix:

  1. 1zsh expands the square brackets before pip ever runsThe command stops at once with zsh: no matches found, and pip prints nothing at all
  2. 2The dev list sits in [dependency-groups], which pip does not treat as an extrapip finishes, prints does not provide the extra 'dev', and pyproject.toml has a [dependency-groups] table holding dev
  3. 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.

Check
echo $0

Fix

Put quotes around the target. The pip reference uses single quotes on Linux and macOS and double quotes on Windows.

Fix
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.

Verify
python -m pip list | grep -iE "pytest|ruff"

Confirmed by github.com

Did this fix it?

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.

Check
python -m pip --version

Fix

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.

Fix
python -m pip install --upgrade pip
python -m pip install -e . --group dev
# or, in a uv project
uv sync

Verify

The warning is gone and the group's packages show up in pip list.

Verify
python -m pip list | grep -i pytest

Confirmed by pip.pypa.io

Did this fix it?

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.

Check
grep -n "tool.poetry.group" pyproject.toml

Fix

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.

Fix
poetry install
poetry install --with dev

Verify

poetry show lists the dev packages, and the test command runs inside Poetry's environment.

Verify
poetry run pytest --version

Confirmed by python-poetry.org

Did this fix it?

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.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.