# PluginValidationError: plugin 'pytest-html' not found

- **ID:** `python/pytest-missing-plugin-dependency`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A pytest plugin specified in conftest.py or command line is not installed in the current Python environment.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |

## Workarounds

1. **Install the missing plugin using pip.** (95% success)
   ```
   pip install pytest-html
   ```
2. **Add the plugin to requirements.txt and run pip install -r requirements.txt.** (90% success)
   ```
   echo 'pytest-html' >> requirements.txt && pip install -r requirements.txt
   ```

## Dead Ends

- **Manually copying plugin files to the project directory** — Plugins must be installed via pip to be properly registered with pytest. (85% fail)
- **Removing the plugin reference from conftest.py without installing** — If the plugin is required for test functionality, tests may fail or behave incorrectly. (60% fail)
