Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python enthund导入:enthund.traits.api vs traits.api_Python_Enthought - Fatal编程技术网

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
,但并非所有的软件包都需要编译。)

安装()模块以实现向后兼容性。

链接站点有一个重定向循环。什么是更好的源代码?