Skip to Content
Raspberry Pi 3 Cookbook for Python Programmers - Third Edition
book

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

by Steven Lawrence Fernandes, Tim Cox
April 2018
Beginner content levelBeginner
552 pages
13h 58m
English
Packt Publishing
Content preview from Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

Getting ready

Perform the following steps to install uInput:

  1. First, we need to download uInput.

You will need to download the uInput Python library from GitHub (~50 KB) using the following commands:

wget https://github.com/tuomasjjrasanen/python-uinput/archive/master.zip
unzip master.zip
  

The library will unzip to a directory called python-uinput-master.

  1. Once completed, you can remove the ZIP file using the following command:
rm master.zip  
  1. Install the required packages using the following commands (if you have installed them already, the apt-get command will ignore them):
sudo apt-get install python3-setuptools python3-dev
sudo apt-get install libudev-dev  
  1. Compile and install uInput using the following commands:
cd python-uinput-master ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi for Python Programmers Cookbook - Second Edition

Raspberry Pi for Python Programmers Cookbook - Second Edition

Tim Cox

Publisher Resources

ISBN: 9781788629874Supplemental Content