[英]py2exe - executable does not start
我已经使用此脚本编译了我的应用程序,以避免在libmzq和MSVCP90 dll上编译错误:
from distutils.core import setup
import py2exe
setup(console=[{"script": "Int_assortimenti.py"}],
options = {
"py2exe": {
"dll_excludes": ["libzmq.dll", "MSVCP90.dll"]
}
})
我获得了我的可执行文件,但是运行它时的结果是:
我怎么解决这个问题? 考虑到我的应用程序matplotlib没有被使用。
在此先多谢:成立我对解决这个问题至关重要!
中号
请在这里查看(“数据文件”部分): http : //www.py2exe.org/index.cgi/MatPlotLib
这可能会帮助您解决该问题。
编辑。 哦,很抱歉,我不专心地阅读了您的问题:(如果您的应用程序不使用matplotlib,我想您可以将其添加为排除项。如下所示:
excludes = ['matplotlib'] # add here all libraries (separated by commas) that you don't need in app
setup(console=[{"script": "Int_assortimenti.py"}],
options = {
"py2exe": {
"excludes": excludes,
"dll_excludes": ["libzmq.dll", "MSVCP90.dll"]
}
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.