install.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Installation
  2. ============
  3. **Prerequisites**: CloudBridge runs on Python 2.7 and higher. Python 3 is
  4. recommended.
  5. We highly recommend installing CloudBridge in a
  6. `virtualenv <http://virtualenv.readthedocs.org/>`_. Creating a new virtualenv
  7. is simple:
  8. .. code-block:: shell
  9. pip install virtualenv
  10. virtualenv .venv
  11. source .venv/bin/activate
  12. Latest stable release
  13. ---------------------
  14. The latest release of CloudBridge can be installed from PyPI::
  15. pip install cloudbridge
  16. Latest unreleased dev version
  17. -----------------------------
  18. The development version of the library can be installed directly from the
  19. `GitHub repo <https://github.com/CloudVE/cloudbridge>`_::
  20. $ pip install --upgrade git+https://github.com/CloudVE/cloudbridge.git
  21. Developer installation
  22. ----------------------
  23. To install additional libraries required by CloudBridge contributors, such as
  24. `tox <https://tox.readthedocs.org/en/latest/>`_, clone the source code
  25. repository and run the following command from the repository root directory::
  26. $ git clone https://github.com/CloudVE/cloudbridge.git
  27. $ cd cloudbridge
  28. $ pip install --upgrade --editable .[dev]
  29. Checking installation
  30. ---------------------
  31. To check what version of the library you have installed, do the following::
  32. import cloudbridge
  33. cloudbridge.get_version()