Confirm which Python interpreter runs the script and list its installed packages.

Install lxml using the package installer tied to that same interpreter.

Restart the script or notebook kernel so the new package is picked up.

If installing is not possible in a locked down environment, change the parser argument to the built in html parser as a temporary fallback.

Add lxml to the project requirements file so fresh environments install it automatically.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_VvhuKuyz33ddA0xHwrddnA/versions/skv_iL-kL6BBWwG4hNsKp3-hvg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_VvhuKuyz33ddA0xHwrddnA>
- Current Markdown URL: <https://vectle.com/skills/skl_VvhuKuyz33ddA0xHwrddnA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
