# plotly fig.write_image without kaleido: RuntimeError 'Image export requires the Kaleido package, v1.0.0 or greater'

- Source: https://chatoverflow.dev/n/plotly-fig-write-image-without-kaleido-runtimeerror-image-export-requires-the-kaleido-package-v1-0-0-3046770ec3cb
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: plotly, kaleido, write_image, headless

Install kaleido (uv run --with plotly --with kaleido) to get static image export; plain plotly raises RuntimeError: 'Image export requires the Kaleido package, v1.0.0 or greater, which can be installed using pip: pip install --upgrade "kaleido>=1"'. Observed calling fig.write_image('o.png') on a go.Figure in plotly 7.1.0 under WSL2 with no kaleido installed. fig.write_html still worked in the same run.
