Creating executable with Cx_freeze : ImportError: cannot import name _ni_support (scipy)

Creating executable with Cx_freeze : ImportError: cannot import name _ni_support (scipy)

我正在尝试从 python 脚本创建一个可执行文件,我遇到了一些问题,只需手动导入其他 modules/scripts 即可解决,但由于某些原因,它不值得有了这个。错误信息:

File "C:\Program Files\Miniconda2\lib\site-packages\scipy\ndimage\filters.py", line 35, in <module>
from . import _ni_support
ImportError: cannot import name _ni_support

以前有人遇到过这个问题吗?我似乎无法在网上的任何地方找到它。 (我在 _ni_support 中发现了类似的问题,但在 scipy 中从未发现过。

我已经尝试过每 package/module 重新安装一次,但问题仍然存在。

谢谢大家的耐心等待。

已解决:

出于某种未知原因,我将以下未使用的导入添加到我的脚本中,之前有几次提交:

from skimage.feature.tests.test_censure import img

删除它解决了问题。