installation.txt 3.6 KB

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