我是 python 的新手,正在尝试使用 MultiListbox
。它说我需要导入 TkTreetrl
。我已经完成了 import TkTreetrl as treectrl
但它仍然给我错误。
在网上看了一些资料后,我的印象是我应该向我的程序所在的文件夹中添加一些文件?
有人可以帮助我了解我究竟如何做到这一点吗?
最佳答案
这里是一份让文件运行的小 list :
1) Download the package file from the internet or get it whereever you can get it from
2) Unzip it (if nessecary)
3) Move it into the directory of your code file
4) Run your code, if there are no errors it will run.
我假设 MultiListbox
模块在子文件夹中,您需要这样调用它们:
从 MultiListbox.subfolder 导入 *
或
import Multilistbox
希望能帮到你!
关于python-3.x - 导入错误 : No module named 'TkTreectrl' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36015615/