installation.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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 ``pip`` comand-line
  18. by using brackets. Multiple bundles can be specified by separating them by
  19. 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 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 eventlet pool.
  36. :celery[gevent]:
  37. for using the gevent pool.
  38. :celery[threads]:
  39. for using the thread pool.
  40. Transports and Backends
  41. ~~~~~~~~~~~~~~~~~~~~~~~
  42. :celery[librabbitmq]:
  43. for using the librabbitmq C library.
  44. :celery[redis]:
  45. for using Redis as a message transport or as a result backend.
  46. :celery[mongodb]:
  47. for using MongoDB as a message transport (*experimental*),
  48. or as a result backend (*supported*).
  49. :celery[sqs]:
  50. for using Amazon SQS as a message transport (*experimental*).
  51. :celery[tblib]
  52. for using the :setting:`task_remote_tracebacks` feature.
  53. :celery[memcache]:
  54. for using memcached as a result backend (using pylibmc)
  55. :celery[pymemcache]:
  56. for using memcached as a result backend (pure-python implementation).
  57. :celery[cassandra]:
  58. for using Apache Cassandra as a result backend with DataStax driver.
  59. :celery[couchdb]:
  60. for using CouchDB as a message transport (*experimental*).
  61. :celery[couchbase]:
  62. for using CouchBase as a result backend.
  63. :celery[elasticsearch]
  64. for using Elasticsearch as a result backend.
  65. :celery[riak]:
  66. for using Riak as a result backend.
  67. :celery[beanstalk]:
  68. for using Beanstalk as a message transport (*experimental*).
  69. :celery[zookeeper]:
  70. for using Zookeeper as a message transport.
  71. :celery[zeromq]:
  72. for using ZeroMQ as a message transport (*experimental*).
  73. :celery[sqlalchemy]:
  74. for using SQLAlchemy as a message transport (*experimental*),
  75. or as a result backend (*supported*).
  76. :celery[pyro]:
  77. for using the Pyro4 message transport (*experimental*).
  78. :celery[slmq]:
  79. for using the SoftLayer Message Queue transport (*experimental*).
  80. .. _celery-installing-from-source:
  81. Downloading and installing from source
  82. --------------------------------------
  83. Download the latest version of Celery from
  84. http://pypi.python.org/pypi/celery/
  85. You can install it by doing the following,:
  86. .. code-block:: console
  87. $ tar xvfz celery-0.0.0.tar.gz
  88. $ cd celery-0.0.0
  89. $ python setup.py build
  90. # python setup.py install
  91. The last command must be executed as a privileged user if
  92. you are not currently using a virtualenv.
  93. .. _celery-installing-from-git:
  94. Using the development version
  95. -----------------------------
  96. With pip
  97. ~~~~~~~~
  98. The Celery development version also requires the development
  99. versions of :pypi:`kombu`, :pypi:`amqp`, :pypi:`billiard` and :pypi:`vine`.
  100. You can install the latest snapshot of these using the following
  101. pip commands:
  102. .. code-block:: console
  103. $ pip install https://github.com/celery/celery/zipball/master#egg=celery
  104. $ pip install https://github.com/celery/billiard/zipball/master#egg=billiard
  105. $ pip install https://github.com/celery/py-amqp/zipball/master#egg=amqp
  106. $ pip install https://github.com/celery/kombu/zipball/master#egg=kombu
  107. $ pip install https://github.com/celery/vine/zipball/master#egg=vine
  108. With git
  109. ~~~~~~~~
  110. Please the Contributing section.