installation.rst 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. :github_url: https://github.com/gopro/OpenGoPro/tree/main/demos/python/sdk_wireless_camera_control
  2. ============
  3. Installation
  4. ============
  5. Stable release
  6. --------------
  7. This is the preferred method to install Open GoPro, as it will always install the most recent stable release
  8. from `PyPi <https://pypi.org/project/open-gopro/>`_ .
  9. If you don't have `pip`_ installed, this `Python installation guide`_ can guide
  10. you through the process.
  11. .. _pip: https://pip.pypa.io
  12. .. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
  13. Minimal Install
  14. ^^^^^^^^^^^^^^^
  15. To minimally install Open GoPro (to use the library and CLI demos), run this command in your terminal:
  16. .. code-block:: console
  17. $ pip install open-gopro
  18. Additional GUI Install
  19. ^^^^^^^^^^^^^^^^^^^^^^
  20. To additionally install the extra dependencies to run the GUI demos:
  21. .. code-block:: console
  22. $ pip install open-gopro[gui]
  23. External Dependencies
  24. ^^^^^^^^^^^^^^^^^^^^^
  25. In order to use any of the Webcam API's, ensure first that your system is setup to
  26. `Use the GoPro as a Webcam <https://community.gopro.com/s/article/GoPro-Webcam?language=de>`_
  27. From sources
  28. ------------
  29. The sources for Open GoPro can be downloaded from the `Github repo`_.
  30. You can either clone the public repository:
  31. .. code-block:: console
  32. $ git clone https://github.com/gopro/OpenGoPro
  33. Or download the `zip`_:
  34. .. code-block:: console
  35. $ curl -OL https://github.com/gopro/OpenGoPro/archive/refs/heads/main.zip
  36. Once you have a copy of the source, you can install it:
  37. First, enter the directory where the source code exists
  38. .. code-block:: console
  39. $ cd OpenGoPro/demos/python/sdk_wireless_camera_control
  40. Then install the package
  41. .. code-block:: console
  42. $ pip install .
  43. .. _Github repo: https://github.com/gopro/OpenGoPro
  44. .. _zip: https://github.com/gopro/OpenGoPro/archive/refs/heads/main.zip
  45. For Developers
  46. ^^^^^^^^^^^^^^
  47. The above installation will not install Open GoPro in editable mode. If you want to modify the package so that
  48. you can change it, for i.e. development, see :ref:`Contribution<Steps>`.