库中的特征是这样导入的:
from enthought.traits.api import Int, Float
# and the other bad thing:
from enthought.traits.ui.api import View但是我已经通过pip (pip install traits)安装了特征,在这个版本中,特征是这样导入的:
from traits.api import Int, Float
# here is
from traitsui.api import View啊!怎么这么乱呀!
如何使用enthougt.traits等?或者我如何创建一个简单的包装器,这样我就可以得到一个伪的wrapper module?
(我也尝试过编译,但并不是所有的包都想编译。)
发布于 2012-05-30 04:59:31
安装etsproxy (github)模块以实现向后兼容。
https://stackoverflow.com/questions/10806405
复制相似问题