ModuleNotFoundError:Windows 上没有名为“grp"的模块 [英] ModuleNotFoundError: No module named 'grp' on windows
问题描述
当我从 Celery 文档中查看 Celery 实现时,
As i was going through the Celery implementation from the Celery documentation,
celery -A tasks worker --loglevel=INFO
给出了来自文档的意外输出,
gave output unexpected that from the documentation,
文件d:\101_all_projects\celery-testing\venv\lib\site-packages\celery\platforms.py",第 9 行,在导入 grp ModuleNotFoundError: 没有名为grp"的模块
File "d:\101_all_projects\celery-testing\venv\lib\site-packages\celery\platforms.py", line 9, in import grp ModuleNotFoundError: No module named 'grp'
这是因为我在 windows 上吗?
Is this because i am on windows?
推荐答案
如果您使用的是 PyPi 包 django-celery-beat,它看起来像是安装了所需包的最新版本celery 而不是安装兼容版本(到我发布此内容时,即 2021 年 5 月 25 日,这将是 v5.1.0),这似乎与django-celery-beat 版本 2.2.0(最新)以及 Windows 操作系统.
If you're using the PyPi package django-celery-beat it looks like it installs the most recent version of the required package celery rather than installing a compatible version (by the time I'm posting this, 25th of May 2021 this would be v5.1.0), which seems to have compatibility issues with django-celery-beat version 2.2.0 (the most recent) as well as Windows OS.
我建议你试试
pip uninstall celery
pip install celery==5.0.5
这篇关于ModuleNotFoundError:Windows 上没有名为“grp"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!