How to install pyserial?


12 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: 609
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: 48
Joined: Sat Nov 16, 2013 5:13 am
by shwnvntr » Mon Jan 25, 2016 6:07 am
Hello
not sure if this is the right place.
pi flavour maker
trying to make 16.04 mate and i get all the way to installing
python serials 3.0 but 3.0.1 is installed. and stop..




getting this on this page

General Error
SQL ERROR [ mysqli ]
Too many connections [1040]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Posts: 4
Joined: Mon Jan 25, 2016 5:55 am
by DirkS » Mon Jan 25, 2016 10:09 am
shwnvntr wrote:Hello
not sure if this is the right place.

No, it's not. You should have started a new topic.

re that error: try again later.
Posts: 4273
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK
by shwnvntr » Mon Jan 25, 2016 8:28 pm
well since i was givin great help i desided to format and reinstall

so back to my question
how do i install pyserials 3.0 over version 3.0-1
Posts: 4
Joined: Mon Jan 25, 2016 5:55 am
by DirkS » Mon Jan 25, 2016 8:38 pm
shwnvntr wrote:well since i was givin great help i desided to format and reinstall1

Great... and goodbye.
Posts: 4273
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK
by shwnvntr » Mon Jan 25, 2016 9:49 pm
so just comments.. no help... going on 3 days now.. still no help..

how do i install pyserial 3.0 not 3.0.1
any help would be great.
Posts: 4
Joined: Mon Jan 25, 2016 5:55 am
by asandford » Mon Jan 25, 2016 10:25 pm
shwnvntr wrote:so just comments.. no help... going on 3 days now.. still no help..

how do i install pyserial 3.0 not 3.0.1
any help would be great.

As virtually none of us here get paid to reply, you might get a response, or you might not - demanding it reduces the possibilty even more.
Have you tried the ubuntu forums (it is their OS - not the foundations)?
Posts: 754
Joined: Mon Dec 31, 2012 12:54 pm
Location: Ealing
by shwnvntr » Tue Jan 26, 2016 1:28 am
thanks for your help
please delete my post and this account.. thanks.
Posts: 4
Joined: Mon Jan 25, 2016 5:55 am