This module encapsulates the access for the serial port. It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono). The module named “serial” automatically selects the appropriate backend.
It is released under a free software license, see LICENSE for more details.
Copyright (C) 2001-2010 Chris Liechti <cliechti(at)gmx.net>
Other pages (online)
This installs a package that can be used from Python (import serial).
To install the module for all users on the system, administrator rights (root) is required..
Download the archive from http://pypi.python.org/pypi/pyserial. Unpack the archive, enter the pyserial-x.y directory and run:
python setup.py install
For Python 3.x:
python3 setup.py install
Alternatively it can be installed from PyPI, either manually downloading the files and installing as described above or using:
pip pyserial
or:
easy_install -U pyserial
There are also packaged versions for some Linux distributions and Windows:
Older versions are still available on the Download Page. pySerial 1.21 is compatible with Python 2.0 on Windows, Linux and several un*x like systems, MacOSX and Jython.
On windows releases older than 2.5 will depend on pywin32 (previously known as win32all)