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

Running python on windows. Installed Orca using conda -c plotly plotly-orca to export static images as pdfs and I receive the following error.

ValueError Traceback (most recent call last)
in
33 sizey=0.4)])
34
—> 35 pio.write_image(fig, ‘gantt_suma.png’, scale=3)
36
37 fig.show()

~\AppData\Roaming\Python\Python37\site-packages\plotly\io_orca.py in write_image(fig, file, format, scale, width, height, validate)
1703 # Do this first so we don’t create a file if image conversion fails
1704 img_data = to_image(
-> 1705 fig, format=format, scale=scale, width=width, height=height, validate=validate
1706 )
1707

~\AppData\Roaming\Python\Python37\site-packages\plotly\io_orca.py in to_image(fig, format, width, height, scale, validate)
1480 # Make sure orca sever is running
1481 # -------------------------------
-> 1482 ensure_server()
1483
1484 # Handle defaults

~\AppData\Roaming\Python\Python37\site-packages\plotly\io_orca.py in ensure_server()
1342 # Validate orca executable
1343 if status.state == “unvalidated”:
-> 1344 validate_executable()
1345
1346 # Acquire lock to make sure that we keep the properties of orca_state

~\AppData\Roaming\Python\Python37\site-packages\plotly\io_orca.py in validate_executable()
1041 executable=config.executable,
1042 formatted_path=formatted_path,
-> 1043 instructions=install_location_instructions,
1044 )
1045 )

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

Searched for executable ‘/path/to/orca’ on the following path:
C:\Program Files (x86)\Intel\iCLS Client
C:\Program Files\Intel\iCLS Client
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Program Files\Intel\Intel® Management Engine Components\DAL
C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL
C:\Program Files\Intel\Intel® Management Engine Components\IPT
C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT
C:\Program Files\Intel\WiFi\bin
C:\Program Files\Common Files\Intel\WirelessCommon
C:\Program Files (x86)\Common Files\Lenovo
C:\ProgramData\Lenovo\ReadyApps
C:\Program Files (x86)\QuickTime\QTSystem
C:\Program Files (x86)\Skype\Phone
C:\Users\Spencer Chad\Anaconda3
C:\Users\Spencer Chad\Anaconda3\Library\mingw-w64\bin
C:\Users\Spencer Chad\Anaconda3\Library\usr\bin
C:\Users\Spencer Chad\Anaconda3\Library\bin
C:\Users\Spencer Chad\Anaconda3\Scripts

If I run the following line:

print(pio.orca.config.plotlyjs)

I get:

C:\Users\Spencer Chad\AppData\Roaming\Python\Python37\site-packages\plotly\package_data\plotly.min.js

I have no idea how to change the path as it suggests in the error message. Help??

This is my command to export static image:

pio.write_image(fig, ‘gantt_suma.png’, scale=3)

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online