我想将字典写入excel文件。我总是收到一些错误信息,有人能解释我该怎么办?Python将字典写入excel
import sys
import argparse
import pyexcel
import pyexcel.ext.xls
import os
#reading input..
dict = {'Kalibrierwerte':
[array_1]
,
'Messwerte':
[array_2]
}
book=pyexcel.get_book(adict=dict)
book.save_as("../data/output2.xls")
if __name__ == '__main__':
sys.exit(main())
当我运行这段代码,我得到这个错误:
'File "C:\Python27\lib\site-packages\pyexcel\sources_init_.py", line 102, in _get_book raise NotImplementedError(MESSAGE_ERROR_NO_HANDLER) NotImplementedError: No suitable plugins imported or installed'
我尝试不同的方法写的输出,但没有一个成功的。
见代码有什么错误? – orvi
对于发布的代码:'文件'C:\ Python27 \ lib \ site-packages \ pyexcel \ sources \ __ init__.py“,第102行,在_get_book中 raise NotImplementedError(MESSAGE_ERROR_NO_HANDLER) NotImplementedError:没有合适的插件导入或安装' – Miguel13366