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

拥有回忆 提交于 2019-12-11 05:15:36

问题


I am trying to create an executable from a python script, I have had a few issues that I have solved simply manually importing other modules/scripts, but for some reason it doesn't worth with this one. The error message:

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

Did anyone have this problem before? I can't seem to find it anywhere online. (I found similar problems with _ni_support but never with scipy.

I already tried reinstalling every package/module, but the problem is still there.

Thank you all for your patience.


回答1:


Solved:

For some unknow reason I had the following unused import added to my script a couple commits earlier:

from skimage.feature.tests.test_censure import img

Removing it solved the issue.



来源:https://stackoverflow.com/questions/43110739/creating-executable-with-cx-freeze-importerror-cannot-import-name-ni-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!