带有多处理的py2exe无法运行进程 [英] py2exe with multiprocessing fails to run the processes

查看:233
本文介绍了带有多处理的py2exe无法运行进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7上使用Python 2.6,并且尝试使用多进程:

p = Process(target=f, args=(SOME_ARGS))
p.start()
p.join()

当我从CMD运行代码(使用解释器)时,一切正常,但是在我使用py2exe创建exe文件后,该过程的执行失败,并出现以下错误:

错误:没有此类选项:--multiprocessing-fork

我发现的所有解决方案均无济于事. 有什么想法吗?

解决方案

您知道您使用的是2008年的应用吗? (py2exe),python处于不断的实现中,然后给py2exe带来了问题,我可以为您提供更好的解决方案...

您可以使用cxfreeze: http://cx-freeze.sourceforge.net/

简单,轻松,良好且实际.

希望这对您有所帮助.

I am using Python 2.6 over windows 7 and I am trying to use multiprocess:

p = Process(target=f, args=(SOME_ARGS))
p.start()
p.join()

while I run the code from CMD (using the interpreter) everything works fine, but after I create an exe file with py2exe, the execution of the process fails with the following error:

error: no such option: --multiprocessing-fork

all the solutions I found did not help. any ideas?

解决方案

You know you are using a app of year 2008? (py2exe), python is in constant actualizations, and then gives problems with py2exe, I can give you a better solution...

You can use cxfreeze: http://cx-freeze.sourceforge.net/

Simply, easy, good, and actualized.

I hope this helped you.

这篇关于带有多处理的py2exe无法运行进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆