Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.07 KB

File metadata and controls

42 lines (27 loc) · 1.07 KB

Installation

Before installing :mod:`evdev`, make sure that the Python and Linux kernel headers are installed on your system.

On a Debian compatible OS:

$ apt-get install python-dev
$ apt-get install linux-headers-$(uname -r)

On a Redhat compatible OS:

$ yum install python-devel
$ yum install kernel-headers-$(uname -r)

The latest stable version can be installed from pypi, while the development version can be installed from github:

$ pip install evdev  # latest stable version
$ pip install git+git://github.com/gvalkov/python-evdev.git # latest development version

:mod:`evdev` can also be installed like any other :mod:`setuptools` package.

$ git clone github.com/gvalkov/python-evdev.git
$ cd python-evdev
$ git checkout $versiontag
$ python setup.py install

The :mod:`evdev` package works with CPython >= 2.7.