install.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. Single Provider Installation
  22. -----------------------------
  23. If you only require to integrate with one to two providers, you can install
  24. the particular providers only as the following.
  25. $ pip install cloudbridge[aws,gcp]
  26. The available options are aws, azure, gcp and openstack.
  27. Developer installation
  28. ----------------------
  29. To install additional libraries required by CloudBridge contributors, such as
  30. `tox <https://tox.readthedocs.org/en/latest/>`_, clone the source code
  31. repository and run the following command from the repository root directory::
  32. $ git clone https://github.com/CloudVE/cloudbridge.git
  33. $ cd cloudbridge
  34. $ pip install --upgrade --editable .[dev]
  35. Checking installation
  36. ---------------------
  37. To check what version of the library you have installed, do the following::
  38. import cloudbridge
  39. cloudbridge.get_version()