Pyserial Python 2. 7

  1. Instalar Pyserial Python 2.7

Oct 14, 2016  Download files. Download the file for your platform. If you're not sure which to choose, learn more about installing packages. Pyserial encapsulates the access for the serial port. It provides back ends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython, and IronPython (.NET and Mono). Pip is the preferred installer program. Starting with Python 2.7.9, it is included by default with the Python binary installers. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide.

Overview

This module encapsulates the access for the serial port. It provides backendsfor Python running on Windows, OSX, Linux, BSD (possibly any POSIX compliantsystem) and IronPython. The module named 'serial' automatically selects theappropriate backend.

  • Project Homepage: https://github.com/pyserial/pyserial
  • Download Page: https://pypi.python.org/pypi/pyserial

BSD license, (C) 2001-2017 Chris Liechti <cliechti@gmx.net>

Documentation

For API documentation, usage and examples see files in the 'documentation'directory. The '.rst' files can be read in any text editor or being converted toHTML or PDF using Sphinx. An HTML version is online athttps://pythonhosted.org/pyserial/

Python

Examples

Examples and unit tests are in the directory examples.

Installation

pip install pyserial should work for most users.

Detailed information can be found in documentation/pyserial.rst.

The usual setup.py for Python libraries is used for the source distribution.Windows installers are also available (see download link above).

or

To install this package with conda run:

conda install -c conda-forge pyserial

conda builds are available for linux, mac and windows.

Active2 months ago

I'm new to Python. According to the internets I was looking for the module pyserial after receiving this error:

I first tried to install pywin32, it went well. But it seems not to contain pyserial. :-(

Then I found a single module installer for pyserial, I was not able to install it, it says it did not found the path to python in the registry. :-(

After that I found this module on python.org, but I don't know what to do, it does not come with an installer. :-(

How can I add pyserial to Python (64) 2.7 on Windows 7 64?

jcomeau_ictx
31.6k5 gold badges72 silver badges91 bronze badges
powtacpowtac
30.7k22 gold badges93 silver badges157 bronze badges

8 Answers

You could try it with pip. (Here a question/answer about installing it)

Then type in your shell:

Solution:
The installation of pip on Windows 7 64 is a little tricky:I added my Python and Python/Scripts path to the PATH env.
Then I opened PythonWin as Administrator, ran ez_setup.py from http://pypi.python.org/pypi/setuptools#downloads with PythonWin. And then I downloaded pip unpacked it and as Administrator I ran python setup.py install on the windows shell and after that pip install pyserial.

Community
Constantinius2.7Constantinius
25.6k6 gold badges55 silver badges80 bronze badges

From http://www.instructables.com/id/The-Arduino-Internet-Gizmo/step19/Installing-the-software/

Install pySerial as follows:

Download pySerial from http://pypi.python.org/pypi/pyserial - click on pyserial-2.6.tar.gz to download the library.

Run 7-Zip (Start -> All Programs -> 7-Zip -> 7-Zip File Manager).

Open the pyserial-2.6.tar.gz file with 7-Zip (File -> Open).

Double click the 'dist' folder.

Single click on the 'pyserial-2.6.tar' file and click the 'Extract' button at the top of the window. When asked where to put the file, specify c:Python27Libsite-packagespyserial-2.6

Exit from 7-Zip

Now that you have downloaded pySerial, install it:

Open a command window (Start -> All Programs -> Accessories -> Command Prompt) and type into the command line: cd c:Python27Libsite-packagespyserial-2.6

Install pySerial by typing this command (including the path): c:Python27python.exe setup.py install

Community
DianaDiana

understood that this question is for Windows, but since it comes up first in a Google search let me add an alternative (to pip) for Debian:

sudo apt-get install python-serial

jcomeau_ictxjcomeau_ictx
31.6k5 gold badges72 silver badges91 bronze badges

As a slight update there is still the problem that python 64bit for Windows is not compatible with the pyserial installer.

What is not mentioned in other answers but I found very useful to know is that Python 32 bit installs and works fine on Win7 64bit and that means the pyserial installer also works fine.

Obviously if you need 64bit python this is no use to you, but I suspect most of us do not.

user3445406user3445406

please just go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyserial and download the 64 bit installer and that's it!

argausargaus

reviving an old thread but pyserial v3.4 is now available for windows/mac/linux via the conda package manager on the conda-forge channel(the base conda channel has v2.7)

To install this package with conda run:
conda install -c conda-forge pyserial

ShaunShaun

pyserial comes now with a precomilied(?) Windows .exe installer: https://pypi.python.org/pypi/pyserial

powtacPyserial python 2. 7 hyundaipowtac
30.7k22 gold badges93 silver badges157 bronze badges

pySerial can be installed from PyPI:

NOTE : Using the python/python3 executable of the desired version (2.7/3.x).

No OneNo One

Instalar Pyserial Python 2.7

Not the answer you're looking for? Browse other questions tagged pythonpython-modulepyserialwindows64 or ask your own question.