AttributeError: module ‘serial’ has no attribute ‘Serial’
AttributeError: module ‘serial’ has no attribute ‘Serial’
运行python的时候出现AttributeError: module ‘serial’ has no attribute ‘Serial’,我用的是pyCharm,原因可能是pyserial安装错误,找到python安装目录:
File --》Settings --》project:untitled --》
点击show ALL
找到你使用的python版本在后面的目录中找到pyvenv.cfg文件