Python enthund导入:enthund.traits.api vs traits.api
通过以下方式导入库中的特征:Python enthund导入:enthund.traits.api vs traits.api,python,enthought,Python,Enthought,通过以下方式导入库中的特征: from enthought.traits.api import Int, Float # and the other bad thing: from enthought.traits.ui.api import View from traits.api import Int, Float # here is from traitsui.api import View 但是我已经通过pip安装了traits(pip install traits),在这个版本中,
from enthought.traits.api import Int, Float
# and the other bad thing:
from enthought.traits.ui.api import View
from traits.api import Int, Float
# here is
from traitsui.api import View
但是我已经通过pip安装了traits(pip install traits
),在这个版本中,traits是通过以下方式导入的:
from enthought.traits.api import Int, Float
# and the other bad thing:
from enthought.traits.ui.api import View
from traits.api import Int, Float
# here is
from traitsui.api import View
真是一团糟
如何使用enthougt.traits等。?或者我如何创建一个简单的包装器,从而得到一个伪Enthow模块
(我也尝试了
pip安装ets
,但并非所有的软件包都需要编译。)安装()模块以实现向后兼容性。链接站点有一个重定向循环。什么是更好的源代码?