Python Orca error

When i am using plotly.to_image it give me error. It is mainly because of the connection error to orca. I dont know how to solve it
Traceback (most recent call last):
File “app/Libraries/Chart.py”, line 409, in
print(send_welcome())
File “app/Libraries/Chart.py”, line 399, in send_welcome
img_bytes = pio.to_image(fig, format=‘svg’)
File “anaconda3/lib/python3.6/site-packages/plotly/io/_orca.py”, line 1294, in to_image
ensure_server()
File “anaconda3/lib/python3.6/site-packages/plotly/io/_orca.py”, line 1163, in ensure_server
validate_executable()
File “anaconda3/lib/python3.6/site-packages/plotly/io/_orca.py”, line 994, in validate_executable
raise ValueError(err_msg)
ValueError:
The orca executable is required in order to export figures as static images,
but the executable that was found at ‘anaconda3/bin/orca’
does not seem to be a valid plotly orca executable. Please refer to the end of
this message for details on what went wrong.

If you haven’t installed orca yet, you can do so using conda as follows:

$ conda install -c plotly plotly-orca

Alternatively, see other installation methods in the orca project README at
https://github.com/plotly/orca.

After installation is complete, no further configuration should be needed.

If you have installed orca, then for some reason plotly.py was unable to
locate it. In this case, set the plotly.io.orca.config.executable
property to the full path of your orca executable. For example:

>>> plotly.io.orca.config.executable = '/path/to/orca'

After updating this executable property, try the export operation again.
If it is successful then you may want to save this configuration so that it
will be applied automatically in future sessions. You can do this as follows:

>>> plotly.io.orca.config.save()

If you’re still having trouble, feel free to ask for help on the forums at
https://community.plotly.com/c/api/python

Here is the error that was returned by the command
$ anaconda3/bin/orca --help

[Return code: 1]

Note: When used on Linux, orca requires an X11 display server, but none was
detected. Please install X11, or configure your system with Xvfb. See
the orca README (https://github.com/plotly/orca) for instructions on using
orca with Xvfb.

Hi @gridiron9999,

I think this part of the error message is the key:

Are you running this on a headless linux server? If so you’ll need to use xvfb as discussed in the link above.

-Jon