Sometimes Python libraries and other software are supplied via a Git repository URL. You need to be able to fetch them onto your Raspberry Pi.
To use code in Git repositories, you need to download Git and then use the git clone command to fetch the files.
Discussion
Git is a source code management system. To install it, use the command:
$ sudo apt-get install git |
Once Git is installed, you can use the clone command to fetch the source code files you want. If you are doing this into a directory where you have write access, you don’t need to do this as a superuser.
For example, the following command will fetch all the source code examples from this book:
$ git clone https://github.com/simonmonk/raspberrypi_cookbook.git |
See Also
Find out more about Git and the Git hosting service GitHub.
See also Recipe 3.16.