Problem outputting image

I am new to plotly and python.

I am trying to output a high-resolution image. According to this page: Static image export in Python I should install “kaleido” as the now recommended approach. The doc says this is opposed to the legacy “orca”.

I installed and created a fig based on plotly express.

I then executed the following per the docs:

import os

if not os.path.exists(“images”):
os.mkdir(“images”)

fig.write_image(“images/fig1.png”)

I get a lengthy error that contains the notice
:

ValueError:
The orca executable is required to export figures as static images,
but it could not be found on the system path.

I am not sure what that means. Is it not using the “kaleido” approach? Do I still need orca?

Thanks,

If have installed kaleido within your pip / conda Python environment, the method write_image should use kaleido by default.

Try pip freeze to see if kaleido is installed within your environment.