Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has python package serial been renamed to pyserial?

A quick question, as I was learning to set up a serial connection via python. I googled for according packages and found mainly two across the internet: serial and pyserial.

However, it seems there is only documentation to be found for pyserial, although both have a lot of stackoverflow entries.

Could it be that the serial package has been renamed to pyserial?

like image 402
dschingchris Avatar asked May 19 '26 10:05

dschingchris


1 Answers

The serial package on Pypi is something different to pyserial.

Maybe what's confusing you is that you need to install Pyserial with pip install pyserial, but import it with serial. The name a package can be imported by gets set in the packages field in their setup.py. Here's the one for Pyserial. It can be different to the name of the package on Pypi.

like image 146
D Malan Avatar answered May 22 '26 00:05

D Malan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!