installation.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .. _celery-installation:
  2. Installation
  3. ============
  4. You can install Celery either via the Python Package Index (PyPI)
  5. or from source.
  6. To install using :command:`pip`:
  7. .. code-block:: console
  8. $ pip install -U Celery
  9. .. _bundles:
  10. Bundles
  11. -------
  12. Celery also defines a group of bundles that can be used
  13. to install Celery and the dependencies for a given feature.
  14. You can specify these in your requirements or on the :command:`pip`
  15. command-line by using brackets. Multiple bundles can be specified by
  16. separating them by commas.
  17. .. code-block:: console
  18. $ pip install "celery[librabbitmq]"
  19. $ pip install "celery[librabbitmq,redis,auth,msgpack]"
  20. The following bundles are available:
  21. Serializers
  22. ~~~~~~~~~~~
  23. :``celery[auth]``:
  24. for using the ``auth`` security serializer.
  25. :``celery[msgpack]``:
  26. for using the msgpack serializer.
  27. :``celery[yaml]``:
  28. for using the yaml serializer.
  29. Concurrency
  30. ~~~~~~~~~~~
  31. :``celery[eventlet]``:
  32. for using the :pypi:`eventlet` pool.
  33. :``celery[gevent]``:
  34. for using the :pypi:`gevent` pool.
  35. Transports and Backends
  36. ~~~~~~~~~~~~~~~~~~~~~~~
  37. :``celery[librabbitmq]``:
  38. for using the librabbitmq C library.
  39. :``celery[redis]``:
  40. for using Redis as a message transport or as a result backend.
  41. :``celery[sqs]``:
  42. for using Amazon SQS as a message transport (*experimental*).
  43. :``celery[tblib]``:
  44. for using the :setting:`task_remote_tracebacks` feature.
  45. :``celery[memcache]``:
  46. for using Memcached as a result backend (using :pypi:`pylibmc`)
  47. :``celery[pymemcache]``:
  48. for using Memcached as a result backend (pure-Python implementation).
  49. :``celery[cassandra]``:
  50. for using Apache Cassandra as a result backend with DataStax driver.
  51. :``celery[couchbase]``:
  52. for using Couchbase as a result backend.
  53. :``celery[elasticsearch]``:
  54. for using Elasticsearch as a result backend.
  55. :``celery[riak]``:
  56. for using Riak as a result backend.
  57. :``celery[zookeeper]``:
  58. for using Zookeeper as a message transport.
  59. :``celery[sqlalchemy]``:
  60. for using SQLAlchemy as a result backend (*supported*).
  61. :``celery[pyro]``:
  62. for using the Pyro4 message transport (*experimental*).
  63. :``celery[slmq]``:
  64. for using the SoftLayer Message Queue transport (*experimental*).
  65. :``celery[consul]``:
  66. for using the Consul.io Key/Value store as a message transport or result backend (*experimental*).
  67. :``celery[django]``:
  68. specifies the lowest version possible for Django support.
  69. You should probably not use this in your requirements, it's here
  70. for informational purposes only.
  71. .. _celery-installing-from-source:
  72. Downloading and installing from source
  73. --------------------------------------
  74. Download the latest version of Celery from PyPI:
  75. http://pypi.python.org/pypi/celery/
  76. You can install it by doing the following,:
  77. .. code-block:: console
  78. $ tar xvfz celery-0.0.0.tar.gz
  79. $ cd celery-0.0.0
  80. $ python setup.py build
  81. # python setup.py install
  82. The last command must be executed as a privileged user if
  83. you aren't currently using a virtualenv.
  84. .. _celery-installing-from-git:
  85. Using the development version
  86. -----------------------------
  87. With pip
  88. ~~~~~~~~
  89. The Celery development version also requires the development
  90. versions of :pypi:`kombu`, :pypi:`amqp`, :pypi:`billiard`, and :pypi:`vine`.
  91. You can install the latest snapshot of these using the following
  92. pip commands:
  93. .. code-block:: console
  94. $ pip install https://github.com/celery/celery/zipball/master#egg=celery
  95. $ pip install https://github.com/celery/billiard/zipball/master#egg=billiard
  96. $ pip install https://github.com/celery/py-amqp/zipball/master#egg=amqp
  97. $ pip install https://github.com/celery/kombu/zipball/master#egg=kombu
  98. $ pip install https://github.com/celery/vine/zipball/master#egg=vine
  99. With git
  100. ~~~~~~~~
  101. Please the Contributing section.