2014-01-12 51 views
1

導入djcelery時出現以下錯誤。有沒有其他方法可以安裝?導入djcelery獲取錯誤

Traceback (most recent call last): 
    File "manage.py", line 15, in <module> 
    import settings 
    File "/home/c0mrade/Documents/wipi/wishpicker/settings.py", line 7, in <module> 
    import djcelery 
    File "/usr/local/lib/python2.7/dist-packages/djcelery/__init__.py", line 22, in <module> 
    from celery import current_app as celery # noqa 
    File "/usr/local/lib/python2.7/dist-packages/celery/five.py", line 307, in __getattr__ 
    module = __import__(self._object_origins[name], None, None, [name]) 
    File "/usr/local/lib/python2.7/dist-packages/celery/_state.py", line 20, in <module> 
    from celery.utils.threads import LocalStack 
    File "/usr/local/lib/python2.7/dist-packages/celery/utils/__init__.py", line 351, in <module> 
    from .functional import chunks, noop     # noqa 
    File "/usr/local/lib/python2.7/dist-packages/celery/utils/functional.py", line 18, in <module> 
    from kombu.utils.functional import lazy, maybe_evaluate, is_list, maybe_list 
ImportError: cannot import name lazy 
+0

除了什麼其他方法?你是如何試圖安裝它的? – jonrsharpe

回答

3
sudo pip install -U django-celery 
如果你使用Ubuntu變種

。這升級所有的包django芹菜依賴於