首页
软件开发
登录
6mi
u
盘
搜
搜 索
软件开发
Python "AttributeError: module 'serial' has no attribute 'Serial'"的解决建议
Python "AttributeError: module 'serial' has no attribute 'Serial'"的解决建议
xiaoxiao
2023-11-26
191
许多人从网上找到串口代码后,直接安装了serial,无法运行,然后又安装pyserial,出现上述问题,本文给出解决建议。
如果你是按上述情况操作的,即使卸载了serial也无济于事,必须将二者同时卸载,然后单独安装最新版本的pyserial库。
pycharm的卸载方法:
1. 左上角 file——settings
2. 选中你想要删除的库,点击右上角的 “-”号
转载请注明原文地址: https://yun.8miu.com/read-113405.html
最新回复
(
0
)