Working on the celery upstarting for my flask project. When using the upstart command( sudo /etc/init.d/celeryd start
) I get
celery init v10.1.
Using config script: /etc/default/celeryd
Traceback (most recent call last):
File "/home/user/.local/bin/celery", line 7, in <module>
from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
My bin file for celery is placed in /home/user/.local/bin/celery
. Directly running celery -A project worker -l info
in terminal is working fine.
you can install the module celery vai pip
make sure pip is accessible through command prompt if not set it with environment variable if it's okay then
simply type the command
pip install celery
The module will installed .
Working on the celery upstarting for my flask project. When using the upstart command( sudo /etc/init.d/celeryd start
) I get
celery init v10.1.
Using config script: /etc/default/celeryd
Traceback (most recent call last):
File "/home/user/.local/bin/celery", line 7, in <module>
from celery.__main__ import main
ModuleNotFoundError: No module named 'celery'
My bin file for celery is placed in /home/user/.local/bin/celery
. Directly running celery -A project worker -l info
in terminal is working fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.