gpt4 book ai didi

django - 错误 : No such command 'flower' . 您的意思是其中之一吗? worker

转载 作者:行者123 更新时间:2023-12-05 00:45:19 35 4
gpt4 key购买 nike

我正在尝试使用 django + celery + rabbitmq + 花,但是在我使用 pip3 下载了花之后:

Collecting flower
Using cached flower-0.9.5-py2.py3-none-any.whl (459 kB)
Requirement already satisfied: celery>=4.3.0; python_version >= "3.7" in /home/denys/env2/myshop/lib/python3.8/site-packages (from flower) (5.0.0)
Requirement already satisfied: humanize in /home/denys/env2/myshop/lib/python3.8/site-packages (from flower) (2.6.0)
Requirement already satisfied: pytz in /home/denys/env2/myshop/lib/python3.8/site-packages (from flower) (2020.1)
Requirement already satisfied: tornado<7.0.0,>=5.0.0; python_version >= "3.5.2" in /home/denys/env2/myshop/lib/python3.8/site-packages (from flower) (6.0.4)
Requirement already satisfied: prometheus-client==0.8.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from flower) (0.8.0)
Requirement already satisfied: vine<6.0,>=5.0.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (5.0.0)
Requirement already satisfied: click-didyoumean>=0.0.3 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (0.0.3)
Requirement already satisfied: billiard<4.0,>=3.6.3.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (3.6.3.0)
Requirement already satisfied: click-repl>=0.1.6 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (0.1.6)
Requirement already satisfied: click>=7.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (7.1.2)
Requirement already satisfied: kombu<6.0,>=5.0.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from celery>=4.3.0; python_version >= "3.7"->flower) (5.0.2)
Requirement already satisfied: six in /home/denys/env2/myshop/lib/python3.8/site-packages (from click-repl>=0.1.6->celery>=4.3.0; python_version >= "3.7"->flower) (1.15.0)
Requirement already satisfied: prompt-toolkit in /home/denys/env2/myshop/lib/python3.8/site-packages (from click-repl>=0.1.6->celery>=4.3.0; python_version >= "3.7"->flower) (3.0.7)
Requirement already satisfied: amqp<6.0.0,>=5.0.0 in /home/denys/env2/myshop/lib/python3.8/site-packages (from kombu<6.0,>=5.0.0->celery>=4.3.0; python_version >= "3.7"->flower) (5.0.1)
Requirement already satisfied: wcwidth in /home/denys/env2/myshop/lib/python3.8/site-packages (from prompt-toolkit->click-repl>=0.1.6->celery>=4.3.0; python_version >= "3.7"->flower) (0.2.5)
Installing collected packages: flower
Successfully installed flower-0.9.5

在我的虚拟环境中,当我尝试使用时

 celery -A myshop flower

在运行 celery 和 rabbitmq 时出现此错误:

Error: No such command 'flower'.

Did you mean one of these?
worker

我在同一个目录中做了这个:

/home/denys/env2/myshop/myshop

当我使用 celery --help 时结束,没有花命令:

Commands:
amqp AMQP Administration Shell.
beat Start the beat periodic task scheduler.
call Call a task by name.
control Workers remote control.
events Event-stream utilities.
graph The ``celery graph`` command.
inspect Inspect the worker at runtime.
list Get info from broker.
logtool The ``celery logtool`` command.
migrate Migrate tasks from one broker to another.
multi Start multiple worker instances.
purge Erase all messages from all known task queues.
report Shows information useful to include in bug-reports.
result Print the return value for a given task id.
shell Start shell session with convenient access to celery symbols.
status Show list of workers that are online.
upgrade Perform upgrade between versions.
worker Start worker instance.

我也尝试使用:

celery flower -A myshop

我应该改变什么?谢谢)

最佳答案

貌似是最新版的flower doesn't yet support celery v5.0.0截至 20 年 10 月 1 日。

正如 Артур 所说,降到 4.4.7 应该可以解决问题。

关于django - 错误 : No such command 'flower' . 您的意思是其中之一吗? worker ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64075628/

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