问题描述
我有一个Cherrypy应用程序,我已经用pyinstaller制作了一个exe文件.现在,当我运行exe时,它将自身两次加载到内存中.观看taskmanager可以看到第一个实例加载到大约1k,然后第二个第二个hte exe加载到大约3k ram.如果我关闭较大的一个,则两个过程都会死亡.如果我关小一点,只有一个人死.
I have a cherrypy app that I've made an exe with pyinstaller.now when I run the exe it loads itself twice into memory. Watching the taskmanager shows the first instance load into about 1k, then a second later a second instance of hte exe loads into about 3k ram. If I close the bigger one both processes die. If I close hte smaller one only that one dies.
通过子进程加载exe,如果我尝试proc.kill(),它只会杀死一个小的exe,而另一个则在内存中运行.这是一起使用cherrypy和pyinstaller的副作用吗?
Loading the exe with subprocess, if I try to proc.kill(), it only kills the small one leaving the other running in memory. Is this a sideeffect of using cherrypy and pyinstaller together?
推荐答案
PyInstaller在引导过程中产生一个子进程.手册的一部分.
PyInstaller spawns a subprocess during its boot process. This is explained in a section of its manual.
这篇关于pyinstaller:我的cherrypy应用程序exe的2个实例被执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!