Python 导入XMindDocument以创建思维导图

Python 导入XMindDocument以创建思维导图,python,mindmap,Python,Mindmap,我正试图从mekk.xmind导入XMindDocument,但出现错误: “导入错误:没有名为mekk.xmind的模块” 我已经使用pip安装了mekk.xmind pip install mekk.xmind 错误:命令“C++:用户\Frave\AppDATAB\\程序\Pyth\\VisualC++,Python \\\\vc\bin \AMD64 \C.exe”“退出状态2失败/p>失败” 有人能帮忙吗?模块坏了 最后,我手动将文件cp-r/mekk/xmind-mekkxmind

我正试图从mekk.xmind导入XMindDocument,但出现错误:

“导入错误:没有名为mekk.xmind的模块”

我已经使用pip安装了mekk.xmind

pip install mekk.xmind
错误:命令“C++:用户\Frave\AppDATAB\\程序\Pyth\\VisualC++,Python \\\\vc\bin \AMD64 \C.exe”“退出状态2失败/p>失败” 有人能帮忙吗?

模块坏了

最后,我手动将文件
cp-r/mekk/xmind-mekkxmind
(其中
可以通过
pip show mekk.xmind
找到)复制到我的工作目录,并从那里导入:

from mekkxmind import XMindDocument


xmind = XMindDocument.create(u"First sheet title", u"Root subject")
first_sheet = xmind.get_first_sheet()
root_topic = first_sheet.get_root_topic()

root_topic.add_subtopic(u"First item")
root_topic.add_subtopic(u"Second item")
t = root_topic.add_subtopic(u"Third item")
t.add_subtopic(u"Second level - 1")
t.add_subtopic(u"Second level - 2")
root_topic.add_subtopic(u"Detached topic", detached = True)
t.add_subtopic(u"Another detached", detached = True)
t.add_marker("flag-red")
root_topic.add_subtopic(u"Link example").set_link("https://stackoverflow.com/questions/42896645/import-xminddocument-to-create-mindmap")
root_topic.add_subtopic(u"With note").set_note(u"""This is just some dummy note.""")

xmind.pretty_print()
# xmind.save('test.xmind')