The -v option increases pip’s verbosity so you can see that it’s doing something. Note that this may take longer than you expect as the SWIG generated files are compiled during installation. The easiest installation method is to use the pip command: sudo pip install -v gphoto2 To install for both Python 2 and Python 3, run the installation process twice with specific commands, i.e. The commands below will install python-gphoto2 for your default Python version. There are several ways to install python-gphoto2, with varying levels of control over the installation process. Look for libgphoto2-2-dev or libgphoto2-devel or something similar. Most Linux distributions’ package managers have these, but the names vary. Note that you need the “development headers” versions of libgphoto2 and Python. SWIG: (optional since python-gphoto2 v0.11) Python: version 2.6 or greater (including Python 3) Gp_camera_wait_for_event / Camera.wait_for_event Gp_camera_file_read / Camera.file_read / gp_file_slurp / CameraFile.slurp Gp_file_get_data_and_size / CameraFile.get_data_and_size The gphoto2 source tree includes some Python bindings which also use ctypes. Other Python bindings to libgphoto2 are available: piggyphoto uses ctypes (included in standard Python installations) to interface to the library. This gives direct access to nearly all the libgphoto2 functions, but sometimes in a rather un-Pythonic manner. It is built using SWIG to automatically generate the interface code. Python-gphoto2 is a comprehensive Python interface (or binding) to libgphoto2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |