Script with scipy using py2exe

一个人想着一个人 提交于 2019-12-03 14:31:25

I ran into this problem today, and found a more thorough solution from here.

opts = {"py2exe": {
    "includes": ['scipy', 'scipy.integrate', 'scipy.special.*','scipy.linalg.*']}}

Then, in your setup.py script, use:

setup(options=opts,windows=['script.py'])

scipy.misc must have scipy.linalg.cython_blas as a dependency. To solve this include the following package in your py2exe setup script at the "options > include" level:

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