导入特征错误/如何编译Enought工具套件以便我可以在Pycharm中使用chaco?

时间:2015-08-10 08:05:17

标签: python enthought chaco

基本上,我遇到了traits模块没有出现的错误。 traits.api error in python

Traceback (most recent call last):
  File "C:/Users/x/PycharmProjects/Enthought/.idea/Dynamic Plot.py", line 4, in <module>
    from traits.api import HasTraits, Instance, Int
ImportError: No module named 'traits'

答案(希望是正确的)说必须编译工具套件。我想和pycharm呆在一起。不确定compileall会做什么,但它不起作用。

1 个答案:

答案 0 :(得分:0)

PyCharm没有问题。检查你的进口。如果您安装了Canopy,那么所有Enthought库都应该通过var fruit = $('.fruit'); fruits.imagesLoaded(function() { var tree = fruits.packery({ itemSelector: '.fruit', columnWidth: 0, }); }); // imagesLoaded closing tag fruit.draggable(); tree.packery('bindUIDraggableEvents', fruit); // this line doesn't work this time 包提供:

enthought

否则您应该安装import enthought.traits 或只需通过etsproxy安装traits模块进行直接导入:

pip
相关问题