python 3的主管?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19796883/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 14:39:44  来源:igfitidea点击:

supervisord for python 3?

pythonpython-3.xsupervisord

提问by user2777473

Want to use supervisordto control the processes for my Python 3 project. It is specifically stated that "Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3".

想使用supervisord来控制我的 Python 3 项目的进程。特别声明“Supervisor 可以在 Python 2.4 或更高版本上工作,但不能在任何版本的 Python 3 下工作”。

Any suggestions for supervisor replacement for Python 3?

对于 Python 3 的主管替换有什么建议吗?

采纳答案by Martijn Pieters

The upcoming4.0 release of Supervisord will support Python 2.7, and 3.4 and up. Until then, you could use the supervisor-py3kfork.

即将到来的4.0版本Supervisord的支持Python 2.7版,3.4及以上。在此之前,您可以使用supervisor-py3kfork

Or simply run supervisordwith Python 2; your Python 3 codebase is otherwise unaffected, as supervisordis an independent process.

或者干脆supervisord用 Python 2运行;您的 Python 3 代码库不受影响,因为它supervisord是一个独立的进程。

回答by Adrian Lopez

Master branch of Supervisoralready supports Python3. It's a development version, so please notify any bug you find.

Supervisor 的Master 分支已经支持 Python3。这是一个开发版本,所以请通知您发现的任何错误。

回答by ChillarAnand

Python 3 support for supervisord is still experimental and as mentioned in documentation, you shouldn't use it in production.

Python 3 对 supervisord 的支持仍处于试验阶段,如文档中所述,您不应在生产中使用它。

Mozilla Foundation has developed a package called circuswhich works on Python 3.

Mozilla 基金会开发了一个名为circus的包,它可以在 Python 3 上运行。

It manages process with circusd and it also has circusctl, circus-top, circus-web(similar to supervisor).

它使用 circusd 管理进程,它还有 circusctl、circus-top、circus-web(类似于 supervisor)。

You can use your supervisor conf file with circus with some changes. It also has a seperate section in docsfor users coming from supervisor. You can read that for more details.

您可以将您的主管 conf 文件与 circus 一起使用,并进行一些更改。它还在文档中有一个单独的部分,供来自主管的用户使用。您可以阅读该内容以了解更多详细信息。

Update: Latest master has python 3 support. You can install it with

更新:最新的大师有 python 3 支持。你可以安装它

pip install git+https://github.com/Supervisor/supervisor

回答by Vasili Pascal

To use supervisord with Python 3 you can setup it directly with pip:

要在 Python 3 中使用 supervisord,您可以直接使用 pip 设置它:

pip install git+https://github.com/Supervisor/supervisor

回答by atb00ker

supervisor 4+ supports Python3, It's available in PyPI so you can simply do pip install supervisorto install it.

supervisor 4+ 支持 Python3,它在 PyPI 中可用,所以你可以简单pip install supervisor地安装它。