installation.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. $ pip install -U Celery
  8. To install using `easy_install`,::
  9. $ easy_install -U Celery
  10. .. _bundles:
  11. Bundles
  12. -------
  13. Celery also defines a group of bundles that can be used
  14. to install Celery and the dependencies for a given feature.
  15. You can specify these in your requirements or on the ``pip`` comand-line
  16. by using brackets. Multiple bundles can be specified by separating them by
  17. commas.
  18. .. code-block:: bash
  19. $ pip install "celery[librabbitmq]"
  20. $ pip install "celery[librabbitmq,redis,auth,msgpack]"
  21. The following bundles are available:
  22. Serializers
  23. ~~~~~~~~~~~
  24. :celery[auth]:
  25. for using the auth serializer.
  26. :celery[msgpack]:
  27. for using the msgpack serializer.
  28. :celery[yaml]:
  29. for using the yaml serializer.
  30. Concurrency
  31. ~~~~~~~~~~~
  32. :celery[eventlet]:
  33. for using the eventlet pool.
  34. :celery[gevent]:
  35. for using the gevent pool.
  36. :celery[threads]:
  37. for using the thread 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[mongodb]:
  45. for using MongoDB as a message transport (*experimental*),
  46. or as a result backend (*supported*).
  47. :celery[sqs]:
  48. for using Amazon SQS as a message transport (*experimental*).
  49. :celery[memcache]:
  50. for using memcached as a result backend.
  51. :celery[cassandra]:
  52. for using Apache Cassandra as a result backend.
  53. :celery[couchdb]:
  54. for using CouchDB as a message transport (*experimental*).
  55. :celery[couchbase]:
  56. for using CouchBase as a result backend.
  57. :celery[beanstalk]:
  58. for using Beanstalk as a message transport (*experimental*).
  59. :celery[zookeeper]:
  60. for using Zookeeper as a message transport.
  61. :celery[zeromq]:
  62. for using ZeroMQ as a message transport (*experimental*).
  63. :celery[sqlalchemy]:
  64. for using SQLAlchemy as a message transport (*experimental*),
  65. or as a result backend (*supported*).
  66. :celery[pyro]:
  67. for using the Pyro4 message transport (*experimental*).
  68. :celery[slmq]:
  69. for using the SoftLayer Message Queue transport (*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. $ tar xvfz celery-0.0.0.tar.gz
  77. $ cd celery-0.0.0
  78. $ python setup.py build
  79. # python setup.py install
  80. The last command must be executed as a privileged user if
  81. you are not currently using a virtualenv.
  82. .. _celery-installing-from-git:
  83. Using the development version
  84. -----------------------------
  85. With pip
  86. ~~~~~~~~
  87. The Celery development version also requires the development
  88. versions of ``kombu``, ``amqp`` and ``billiard``.
  89. You can install the latest snapshot of these using the following
  90. pip commands::
  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. With git
  96. ~~~~~~~~
  97. Please the Contributing section.