pyserial for Python 2.7.2

powtac picture powtac · Dec 13, 2011 · Viewed 98.3k times · Source

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

ImportError: No module named serial

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?

Answer

Constantinius picture Constantinius · Dec 13, 2011

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

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.