Hi All,
I'm new to forums so bear with me please.
I may have a solution to this. I am using PyCharm as my IDE on a Windows10 PC.
Initially I accidently installed "serial" rather than pyserial for a new project.
I then tried installing pyserial and uninstalling (deleting) serial. This still gave me the error even after rebooting my PC.
However, I then uninstalled (deleted) pyserial, ran the code which now correctly identified that there was no serial library. I then re-installed pyserial and it now works.
I guess the environment was still finding or remembering remnants of the original serial library. By removing pyserial and forcing the IDE to recognise that there was no serial library before re-installing pyserial cleared that issue.
I hope this helps someone as it has caught me out several times now and I haven’t found anyone on forums that has this solution.
Take care and press on... N.