hzxc 发表于 2023-3-3 10:18:29

Python错误:AttributeError: module 'serial' has no attribute 'Serial'

本帖最后由 hzxc 于 2023-3-3 10:21 编辑

问题:
运行时出现AttributeError: module 'serial' has no attribute 'Serial'
解决方法:
将serial和pyserial库都卸载掉,然后只安装pyserial,即可。
pip uninstall serial
pip uninstall pyserialpip install pyserial
页: [1]
查看完整版本: Python错误:AttributeError: module 'serial' has no attribute 'Serial'