我嘗試使用沒有iPython,Canopy的enthought包。不使用Canopy導入Enthought包的錯誤
我下載traits,traitsui,enthought ... etc包。但是,當我將文件夾放在/ Lib中時,它會回調ctraits錯誤。
後,我從https://github.com/enthought/ctraits下載ctraits,
仍然有問題。當我輸入enthought.traits.api或trais.api
錯誤消息是
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import enthought.traits.api
File "C:\Python27\lib\enthought\traits\api.py", line 3, in <module>
from traits.api import *
File "<pyshell#0>", line 1, in <module>
import enthought.traits.api
File "C:\Python27\lib\enthought\traits\api.py", line 3, in <module>
from traits.api import *
File "C:\Python27\lib\traits\api.py", line 107, in <module>
from traitsui import view_elements
File "C:\Python27\lib\traitsui\view_elements.py", line 201, in <module>
class SearchStackItem (HasStrictTraits):
File "C:\Python27\lib\traits\has_traits.py", line 426, in __new__
mhto = MetaHasTraitsObject(cls, class_name, bases, class_dict, False)
File "C:\Python27\lib\traits\has_traits.py", line 497, in __init__
value = _check_trait(value)
File "C:\Python27\lib\traits\has_traits.py", line 340, in _check_trait
return trait.as_ctrait()
File "C:\Python27\lib\traits\trait_handlers.py", line 597, in as_ctrait
trait.set_validate(validate)
File "C:\Python27\lib\traits\ctraits.py", line 714, in set_validate
raise ValueError("The argument must be a tuple or callable")
ValueError: The argument must be a tuple or callable
沒有人有相關經驗,使用特點,Enthought包沒有雨棚或IPython的?