Celery and Django - No module named 'django'

前端 未结 2 840
闹比i
闹比i 2021-01-21 04:53

I use instructions described here. Python 2.7 and Celery 3.1.17.

In celery.py I have (in beginning):

from __future__ import absolute_import
import os
fro         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-21 05:06

    Make sure that you are running celery with your virtualenv. The way to check this is with your virtualenv activated, run the command:

    which celery
    

    If you see something like:

    /usr/bin/celery
    

    Then you have celery installed globally, and you need to uninstall it, and make sure it's only in your virtualenv.

    After uninstalling celery globally, within the virtualenv run which celery again and check.

提交回复
热议问题