我有这个问题,所以我不能复制。
from __future__ import print_function
from mailmerge import MailMerge
from datetime import date我得到了
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-6791e9480127> in <module>
1 from __future__ import print_function
----> 2 from mailmerge import MailMerge
3 from datetime import date
ImportError: cannot import name 'MailMerge' from 'mailmerge' (C:\Users\username\AppData\Roaming\Python\Python37\site-packages\mailmerge\__init__.py)发布于 2020-01-03 11:27:42
Jupyter笔记本
conda install lxml”!pip install docx-mailmerge我从这个网页上学到了这个
这解决了我的问题。
https://stackoverflow.com/questions/59469172
复制相似问题