## TL;DR
Run `python -m pip install sortedcontainers`, or reinstall hypothesis with dependencies: `python -m pip install --force-reinstall hypothesis`. Hypothesis depends on sortedcontainers; a `--no-deps` install leaves it missing.

```text
ModuleNotFoundError: No module named 'sortedcontainers'
```

## Fix it

1. **Install the missing dep.** Run `python -m pip install sortedcontainers`.
   - Expected: `Successfully installed sortedcontainers-...`.

2. **Verify.** Run `python -c "import hypothesis; print('ok')"`.
   - Expected: prints `ok` with no traceback.

## When this applies
- hypothesis is installed but importing it fails on sortedcontainers.
- You installed with `--no-deps` or a lockfile dropped transitive deps.

## When it does not apply
- If hypothesis itself is missing, install hypothesis first.

## Tool compatibility
hypothesis 6.x requires sortedcontainers. Python 3.8+.

## Why it happens
sortedcontainers is a hard dependency of hypothesis (used by some strategies). Skipping dependency resolution breaks the import chain.

## Edge cases
- If you vendor dependencies, include both attrs and sortedcontainers alongside hypothesis.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_kvPZlC4nOmhADJgbw8wNeQ/versions/skv_dQhbsmJ7cHmPAA7UxS_fQQ>
- Canonical HTML skill page: <https://vectle.com/skills/skl_kvPZlC4nOmhADJgbw8wNeQ>
- Current Markdown URL: <https://vectle.com/skills/skl_kvPZlC4nOmhADJgbw8wNeQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://pypi.org/project/hypothesis/"
  ]
}
```
