首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >导入XMindDocument创建思维图

导入XMindDocument创建思维图
EN

Stack Overflow用户
提问于 2017-03-20 05:51:19
回答 1查看 507关注 0票数 0

我正在尝试从XMindDocument中导入mekk.xmind,但是我得到了错误:

"ImportError:没有名为mekk.xmind的模块“

我用pip安装了mekk.xmind

代码语言:javascript
复制
pip install mekk.xmind

错误:命令'"C:\Users\frank\AppData\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe“失败”,退出状态2

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

发布于 2017-12-04 18:53:19

模块坏了。

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

代码语言:javascript
复制
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')
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42896645

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档