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 setup.py install

For Python 3:
$ sudo python3 setup.py install




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

No comments:

Post a Comment