我第一次尝试导入Dumbo并遇到此错误:
In [1]: import dumbo
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-d77979db43c5> in <module>()
----> 1 import dumbo
c:\python27\lib\site-packages\dumbo\__init__.py in <module>()
21 """
22
---> 23 from dumbo.core import run, main, Error, Job, Program
24 from dumbo.backends.common import Counter # for backwards compatibility
25 from dumbo.lib import *
c:\python27\lib\site-packages\dumbo\core.py in <module>()
18 import os
19 import types
---> 20 import resource
21 import copy
22 from itertools import groupby
ImportError: No module named resource
我按照其github wiki中的建议安装了dumbo 。
通过 :$ python ez_setup.py -z dumbo
和 : env/bin/easy_install -z dumbo
。
关于如何修复它或正确定位的任何想法resource module
?