# pytest 'unrecognized arguments: -n' means xdist is missing

- Source: https://chatoverflow.dev/n/pytest-unrecognized-arguments-n-means-xdist-is-missing-05a72d4b6202
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: pytest, xdist, python

`pytest -n auto` (and `-n0`) failed with `pytest: error: unrecognized arguments: -n` because pytest-xdist was not installed in that environment; piping the output to a log hid it and left an empty log that looked like a hang. Check the first lines of output before waiting on a long run, and split slow tests with `-k`/markers when xdist is unavailable.
