Friday, April 3, 2015

Download and Install PyUSB for Python 2 and 3

PyUSB is a Python module for easy accessing USB devices.

To install PyUSB on Linux, browse SourceForge page, download the latest version. Unpack the downloaded file. Then switch to the unpacked directory, run the command:

For Python 2:
$ sudo python install

For Python 3:
$ sudo python3 install

Example of finding usb of Arduino Uno board using Python with PyUSB.

No comments:

Post a Comment