installation.txt 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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,redis,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[redis]``:
  43. for using Redis as a message transport or as a result backend.
  44. :``celery[sqs]``:
  45. for using Amazon SQS as a message transport (*experimental*).
  46. :``celery[tblib``]
  47. for using the :setting:`task_remote_tracebacks` feature.
  48. :``celery[memcache]``:
  49. for using Memcached as a result backend (using :pypi:`pylibmc`)
  50. :``celery[pymemcache]``:
  51. for using Memcached as a result backend (pure-Python implementation).
  52. :``celery[cassandra]``:
  53. for using Apache Cassandra as a result backend with DataStax driver.
  54. :``celery[couchbase]``:
  55. for using Couchbase as a result backend.
  56. :``celery[elasticsearch]``:
  57. for using Elasticsearch as a result backend.
  58. :``celery[riak]``:
  59. for using Riak as a result backend.
  60. :``celery[zookeeper]``:
  61. for using Zookeeper as a message transport.
  62. :``celery[sqlalchemy]``:
  63. for using SQLAlchemy as a result backend (*supported*).
  64. :``celery[pyro]``:
  65. for using the Pyro4 message transport (*experimental*).
  66. :``celery[slmq]``:
  67. for using the SoftLayer Message Queue transport (*experimental*).
  68. :``celery[consul]``:
  69. for using the Consul.io Key/Value store as a message transport or result backend (*experimental*).
  70. .. _celery-installing-from-source:
  71. Downloading and installing from source
  72. --------------------------------------
  73. Download the latest version of Celery from
  74. http://pypi.python.org/pypi/celery/
  75. You can install it by doing the following,:
  76. .. code-block:: console
  77. $ tar xvfz celery-0.0.0.tar.gz
  78. $ cd celery-0.0.0
  79. $ python setup.py build
  80. # python setup.py install
  81. The last command must be executed as a privileged user if
  82. you aren't currently using a virtualenv.
  83. .. _celery-installing-from-git:
  84. Using the development version
  85. -----------------------------
  86. With pip
  87. ~~~~~~~~
  88. The Celery development version also requires the development
  89. versions of :pypi:`kombu`, :pypi:`amqp`, :pypi:`billiard` and :pypi:`vine`.
  90. You can install the latest snapshot of these using the following
  91. pip commands:
  92. .. code-block:: console
  93. $ pip install https://github.com/celery/celery/zipball/master#egg=celery
  94. $ pip install https://github.com/celery/billiard/zipball/master#egg=billiard
  95. $ pip install https://github.com/celery/py-amqp/zipball/master#egg=amqp
  96. $ pip install https://github.com/celery/kombu/zipball/master#egg=kombu
  97. $ pip install https://github.com/celery/vine/zipball/master#egg=vine
  98. With git
  99. ~~~~~~~~
  100. Please the Contributing section.