gpt4 book ai didi

python - 在 linux openSUSE 13.1 中安装 supervisor 时出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:46:42 25 4
gpt4 key购买 nike

我尝试通过

在我的 linux openSUSE 13.1 中安装 supervisor
sudo zypper install supervisor

我得到了

Supervisor not found in package names.Trying capabilities No provider of supervisor found.

即使我尝试通过`pip3 install supervisor安装

它引发了一个错误,如 supervisor requires with python 2.4 or later but doesnot work onany version of python3

我正在使用 python3.4。有什么办法可以解决吗?

最佳答案

除非万不得已,否则请不要再在任何地方安装 python2.4。你可能不知道。由于未知的原因,openSUSE 在主存储库中不包含 supervisor,尽管通常 python 包都被很好地覆盖了。

Supervisor 是一个监督进程的守护进程,无论是 python 程序还是任何其他程序。您通常应该在系统范围内(IMO)而不是在 virtualenv 中安装它。与往常一样,您的情况可能是异常(exception)。

这是 instructions从 openSUSE 13.1 的开发存储库安装 supervisor:

zypper addrepo http://download.opensuse.org/repositories/devel:languages:python/openSUSE_13.1/devel:languages:python.repo
zypper refresh
zypper install supervisor

该软件包将安装所需的依赖项,包括正确的 python2 版本。

Python3 支持是 coming to supervisor 在某个时候,但暂时只考虑它 python2,除非你觉得非常冒险。另一方面,这无关紧要,因为您通常甚至不需要考虑 supervisor 是一个 python 程序。您可以像使用任何其他系统服务守护程序一样使用它。

关于python - 在 linux openSUSE 13.1 中安装 supervisor 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36305532/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com