2015-10-05 60 views
0

因此,我试图用龙卷风测试芹菜,但是在安装Celery时遇到困难。为龙卷风安装芹菜挣扎

我使用的是Ubuntu 12.04 LTS。我有广告龙卷风现在工作数月。然后尝试使用python -m pip install tornado-celery安装芹菜。但是我在测试脚本中的导入命令不起作用。

例如,当我做import tcelery, tasks时,我得到一个ImportError: unable to locate tasks

所以,我试图卸载芹菜思考出了问题。试过apt-get remove tornado-celery。我收到一个错误,说Unable to locate package tornado-celery。所以,我重新安装,然后它说Requirement already satisfied

这是怎么回事?

回答

0

tasks不附带芹菜模块 - 该示例的想法是,你会写自己的文件tasks.py把你的任务有这样的https://github.com/mher/tornado-celery/tree/master/examples

一个例子你安装。没问题(据我所知),但如果你确实要卸载它,请使用相同的程序卸载,就像你安装时一样:pip install安装的东西只能用pip uninstall而不是apt-get uninstall卸载。