Cx_freeze ImportError no module named scipy

后端 未结 3 1674
误落风尘
误落风尘 2020-12-09 13:06

Good day all,

I am having trouble using cx_Freeze on a code I am working on converting to a .exe.

When I run cx_Freeze I get the following ImportError that t

3条回答
  •  长情又很酷
    2020-12-09 13:57

    I had exactly the same issue. Found the solution here: https://bitbucket.org/anthony_tuininga/cx_freeze/issues/43/import-errors-when-using-cx_freeze-with

    Find the hooks.py file in cx_freeze folder. Change line 548 from finder.IncludePackage("scipy.lib") to finder.IncludePackage("scipy._lib").

    Leave the "scipy" entry in packages and delete 'C:\Python34\Lib\site-packages\scipy' in include_files.

提交回复
热议问题