Python Plotly 静态图像导出 (Orca) 出现 html 错误 404

Python Plotly static image export (Orca) getting html error 404

我是运行中的Plotly离线静态图片导出示例https://plot.ly/python/static-image-export/。不幸的是,我收到以下错误 运行 下面一行我无法破译。其他所有步骤都成功,包括绘图渲染。它是否连接到外部地址?

pio.write_image(fig, format='png',file='images/fig1.png')

错误:

ValueError: 
The image request was rejected by the orca conversion utility
with the following error:
 404: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii">
</HEAD>
<BODY><h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>
</BODY></HTML>

您需要将 NO_PROXY 环境变量设置为 localhost maty。