install.rst 1.2 KB

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