How to install pyserial?


5 posts
by prodata » Tue May 15, 2012 5:10 pm
Sorry, me again... but almost there now!

I need to install pyserial (which doesn't seem to be there in the Debian Python by default) in order to talk to a serial device. Naively, I tried:

sudo apt-get install pyserial

but that fails (as pyserial can't be found). Is there a simple way of getting it and also placing it in its correct Python directory, perhaps all with a single command? Or is that expecting too much?
Posts: 113
Joined: Tue Jan 24, 2012 5:53 pm
by croston » Tue May 15, 2012 5:20 pm
From memory:
$ sudo apt-get install python-serial
or
$ sudo apt-get install python3-serial

If I am wrong, you can search Debian packages using:
$ aptitude search serial
User avatar
Posts: 465
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
by prodata » Tue May 15, 2012 5:24 pm
Thanks - magic. Wasn't sure about the installation line that said ' ...processing triggers for python-central...' though.
Posts: 113
Joined: Tue Jan 24, 2012 5:53 pm
by fabads » Thu Jan 16, 2014 1:50 pm
Hi,

Using this method, pyserial was installed but I was unable to launch the provided tools with the pyserial distribution (list_port, miniterm etc).

First I installed pip then installed pyserial module from pip:
sudo apt-get install python-pip
sudo pip install pyserial (add --upgrade if you installed previousliy using the first method)

Hope it helps.

Fabrice
Posts: 1
Joined: Thu Jan 16, 2014 1:47 pm
by Loonhaunt » Sun Mar 02, 2014 3:25 pm
fabads wrote:Hi,

Using this method, pyserial was installed but I was unable to launch the provided tools with the pyserial distribution (list_port, miniterm etc).

First I installed pip then installed pyserial module from pip:
sudo apt-get install python-pip
sudo pip install pyserial (add --upgrade if you installed previousliy using the first method)

Hope it helps.

Fabrice


Did you ever get this to work???

Dave
Posts: 44
Joined: Sat Nov 16, 2013 5:13 am