在克隆的Git仓库中导入用C编写的Python模块时的ImportError

时间:2013-11-26 18:42:44

标签: python c python-import nipy

我刚刚克隆了NiPy repository,但是当我尝试导入nipy.algorithms.registration时,我收到以下错误:

In [1]: import nipy.algorithms.registration
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-17bae03bf7b5> in <module>()
----> 1 import nipy.algorithms.registration

/home/despo/dbliss/nipy/nipy/algorithms/__init__.py in <module>()
      7 __docformat__ = 'restructuredtext'
      8 
----> 9 import statistics
     10 import fwhm, interpolation, kernel_smooth, diagnostics
     11 

/home/despo/dbliss/nipy/nipy/algorithms/statistics/__init__.py in <module>()
      6 __docformat__ = 'restructuredtext'
      7 
----> 8 from . import intvol, rft, onesample, formula
      9 from ._quantile import _quantile as quantile, _median as median
     10 

ImportError: cannot import name intvol

我发现存储库中有两个名为intvol的文件:intvol.c和intvol.pyx。发生了什么事?

已解决:请参阅下面的第一条评论。

0 个答案:

没有答案