Skip to content

Commit c1db2ab

Browse files
Added notes to README about Raspberry Pi
1 parent ec8e8e4 commit c1db2ab

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

README.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ If this fails it is most likely because none of the available wheels is compatib
2626
In this case you *must* install the dependencies listed below before installing python-gphoto2.
2727
The installation process compiles and links the bindings with the libgphoto2_ installed on your computer.
2828

29+
Raspberry Pi
30+
^^^^^^^^^^^^
31+
32+
Binary wheels for the Raspberry Pi are available from piwheels_.
33+
You still need to install some system packages to use these::
34+
35+
sudo apt install libexif12 libgphoto2-6 libgphoto2-port12 libltdl7
36+
sudo pip3 install gphoto2
37+
2938
Dependencies
3039
------------
3140

@@ -52,11 +61,12 @@ Make sure that you install the dependencies_ first.
5261
Install with pip_
5362
^^^^^^^^^^^^^^^^^
5463

55-
The easiest installation method is to use the pip_ command::
64+
The easiest installation method is to use the pip_ command.
65+
Note the use of ``--no-binary`` to prevent installation from a binary wheel::
5666

57-
sudo pip3 install -v gphoto2
67+
sudo pip3 install -v gphoto2 --no-binary :all:
5868

59-
Note that this may take longer than you expect as the package's modules are compiled during installation.
69+
This installation may take longer than you expect as the package's modules are compiled during installation.
6070
The ``-v`` option increases pip_'s verbosity so you can see that it's doing something.
6171

6272
Install a downloaded archive
@@ -492,6 +502,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
492502
http://sourceforge.net/p/gphoto/code/HEAD/tree/trunk/bindings/libgphoto2-python/
493503
.. _piggyphoto: https://github.com/alexdu/piggyphoto
494504
.. _pip: https://pip.pypa.io/
505+
.. _piwheels: https://www.piwheels.org/project/gphoto2/
495506
.. _PyPI: https://pypi.python.org/pypi/gphoto2/
496507
.. _setuptools: https://pypi.org/project/setuptools/
497508
.. _SWIG: http://swig.org/

0 commit comments

Comments
 (0)