[英]getting error distributionNotFound
I have installed celeryD and redis on my system. 我在我的系统上安装了celeryD和redis。 when i am running the command using celery
. 当我使用celery
运行命令时。 iam getting the following error. 我收到以下错误。
Traceback (most recent call last):
File "/usr/local/bin/celeryd", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2711, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-dateutil>=1.5,<2.0
what may be the possible reason?? 可能的原因是什么?
There's a package called python-dateutil that isn't installed. 有一个名为python-dateutil的软件包未安装。
It should be available on the PYTHONPATH that's active when you call celeryd. 它应该在您调用celeryd时激活的PYTHONPATH上可用。
Python dateutil is installable from PyPi . Python dateutil可以从PyPi安装。
Assuming you have pip installed on your system, you can do so with this command: 假设您已在系统上安装了pip ,则可以使用以下命令执行此操作:
$ pip install python-dateutil==1.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.