簡體   English   中英

在 linux openSUSE 13.1 中安裝主管時出錯

[英]Error while installing supervisor in linux openSUSE 13.1

我嘗試通過以下方式在我的 linux openSUSE 13.1 中安裝主管

sudo zypper install supervisor

我正進入(狀態

在包名稱中找不到主管。正在嘗試功能 找不到主管的提供者。

即使我嘗試通過` pip3 install supervisor安裝

supervisor requires with python 2.4 or later but doesnot work on版本supervisor requires with python 2.4 or later but doesnot work on引發了一個類似supervisor requires with python 2.4 or later but doesnot work on的錯誤supervisor requires with python 2.4 or later but doesnot work on任何版本的 python3

我正在使用 python3.4。 有沒有辦法解決這個問題?

請不要再在任何地方安裝 python2.4,除非你絕對必須這樣做。 你可能沒有。 由於未知的原因,openSUSE 在主存儲庫中沒有包含主管,盡管通常 python 包被很好地覆蓋。

Supervisor 是一個監督進程的守護進程,無論是 Python 程序還是任何其他程序。 這是您通常應該在系統范圍內(IMO)而不是在 virtualenv 中安裝的東西。 與往常一樣,您的情況可能是規則的例外。

以下是從 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 支持在某個時候提供主管,但暫時只考慮 Python2,除非您覺得非常冒險。 另一方面,這無關緊要,因為您通常甚至不需要將主管視為 Python 程序。 您可以像使用任何其他系統服務守護程序一樣使用它。

如果第一個提到的 repo 沒有嘗試以下操作:

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

如果它說它在任何版本的 Python3 中都不起作用,請嘗試安裝 python 2.4,這樣你將同時擁有 python3.4 和 python2.4。 這樣,您就可以安裝了。 當然,如果只是python版本的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM