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?
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.
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.
Use pip
to install pyserial
. First install pip:
sudo apt-get install python-pip
After that install pyserial
:
sudo pip install pyserial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With