3

我正在尝试运行使用 Celery 的 Django 应用程序,但收到以下错误:

    import djcelery
  File "/Library/Python/2.7/site-packages/djcelery/__init__.py", line 25, in <module>
    from celery import current_app as celery  # noqa
  File "/Library/Python/2.7/site-packages/celery/__compat__.py", line 135, in __getattr__
    module = __import__(self._object_origins[name], None, None, [name])
  File "/Library/Python/2.7/site-packages/celery/_state.py", line 18, in <module>
    from celery.utils.threads import LocalStack
  File "/Library/Python/2.7/site-packages/celery/utils/__init__.py", line 24, in <module>
    from celery.exceptions import CPendingDeprecationWarning, CDeprecationWarning
  File "/Library/Python/2.7/site-packages/celery/exceptions.py", line 15, in <module>
    from billiard.exceptions import ( # noqa
ImportError: No module named exceptions

billiard 已安装并且该exceptions模块确实存在,并且我可以通过 Python 的交互式提示导入 billiard.exceptions 而不会出现问题。似乎芹菜未能导入台球。有任何想法吗?

4

0 回答 0