需要orca、 psutil和 requests三个包,我电脑里装了 psutil和 requests两个包(如果没装pip install psutil requests),orca安装稍微曲折一点,可以参考这篇文档(https://plot.ly/python/static-image-export/),提供了三种方法,由于conda安装不成功,我就选择了第三种方法,下载orca进行安装,但是下载特别慢,不知道是不是我网络不好。
另外安装好后要重新启动编辑器,要不write_image还是不能用。