You are on page 1of 3

pyserial for Python 2.7.2 - Stack Overflow https://stackoverflow.com/questions/8491111/pys...

pyserial for Python 2.7.2


Asked 9 years ago Active 1 year, 5 months ago Viewed 98k times

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

9 ImportError: No module named serial

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

7 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?

python python-module pyserial windows64

edited Dec 18 '13 at 23:41 asked Dec 13 '11 at 14:47


jcomeau_ictx powtac
34.3k 6 87 96 37.2k 25 105 161

1 it's import serial in Python 2.7 – jcomeau_ictx Aug 5 '13 at 19:08

8 Answers Active Oldest Votes

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

17 Then type in your shell:

pip install pyserial

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 .

edited May 23 '17 at 12:25 answered Dec 13 '11 at 14:50


Community ♦ Constantinius
1 1 29.6k 7 63 81

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.

1 of 3 12/30/20, 7:50 PM
pyserial for Python 2.7.2 - Stack Overflow https://stackoverflow.com/questions/8491111/pys...

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

11 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:\Python27
\Lib\site-packages\pyserial-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:\Python27\Lib\site-
packages\pyserial-2.6

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

edited Jan 16 '16 at 3:12 answered Nov 27 '12 at 0:21


Community ♦ Diana
1 1 111 1 2

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:

4 sudo apt-get install python-serial

answered Aug 4 '13 at 16:19


jcomeau_ictx
34.3k 6 87 96

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

4 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.

answered Mar 21 '14 at 8:11


user3445406
41 2

This was by far the easiest solution I found. Unless you are processing huge datasets, Python 32 bit will work fine for you and the pyserial installer will just work. Thanks!
– Pablo Halpern Aug 5 '15 at 3:24

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

2 answered Sep 19 '13 at 22:44


argaus
21 1

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.

2 of 3 12/30/20, 7:50 PM
pyserial for Python 2.7.2 - Stack Overflow https://stackoverflow.com/questions/8491111/pys...

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)
1
To install this package with conda run:
conda install -c conda-forge pyserial

answered Aug 2 '17 at 13:28


Shaun
99 8

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

0 answered Mar 6 '16 at 12:40


powtac
37.2k 25 105 161

pySerial can be installed from PyPI:

0 python -m pip install pyserial

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

answered Jul 16 '19 at 7:16


No One
34 8

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.

3 of 3 12/30/20, 7:50 PM

You might also like