Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyserial: No module named tools

I have installed the latest pySerial on my Ubuntu box with python 2.7.2, and it works fine for most things, but whenever I try to import the 'tools' package, it says that it can't find 'tools'. The documentation for pySerial explicitly references this 'tools' package.

>>> from serial import tools Traceback (most recent call last):   File "<pyshell#30>", line 1, in <module>     import serial.tools ImportError: No module named tools 

and when I:

>>> serial.VERSION '2.5' 

which is the latest version according to Source Forge

So why can't I get to the 'tools' package of pySerial?

like image 801
charmoniumQ Avatar asked Jan 01 '13 06:01

charmoniumQ


People also ask

How do I know if Pyserial is installed?

To check that it is installed, start Pyzo and at the command prompt type in: import serial If it just gives you another >>> prompt, all is good. Checking that it is really working.

How do I install Pyserial-2.7 on Windows?

To do this on Windows, open Windows Search and type in cmd. Inside the new window that pops up, type in pip install pyserial and press Enter. pyserial-2.7. win32.exe (md5) executable MS Windows Installer and run it.


1 Answers

Use pip to install pyserial. First install pip:

sudo apt-get install python-pip 

After that install pyserial:

sudo pip install pyserial 
like image 89
user1881957 Avatar answered Sep 28 '22 00:09

user1881957