AttributeError("'module' object has no attribute 'Serial'",))

Disclaimer: This article is a blogger original article, without the bloggers allowed to reprint, please set the link to the article! https://blog.csdn.net/qq_30460905/article/details/89137247

 

This problem occurs or is not installed or have the same name pyserial files, links ( https://blog.csdn.net/u010918541/article/details/51173429 ) also said, I have security, but there are still problems, then found to be incorrect installation of the serial, look before you need to import serial direct pip install serial, however useless, and pip install pyserial does not work, finally found a need to uninstall the serial, link ( https://stackoverflow.com/questions/ 11,403,932 / Python-AttributeError-Object-Module1-has-NO-attribute-Serial )

Execution: pip uninstall serial

Error disappears.

 

Guess you like

Origin blog.csdn.net/qq_30460905/article/details/89137247