我刚刚克隆了NiPy 存储库,但是当我尝试导入时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。这是怎么回事?