栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

无标题白板_无标题网页?

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

无标题白板_无标题网页?

ESP32 IDF 串口连接问题
idf 获取串口列表时出错
idf Something went wrong while getting the serial port list

在遇到这个问题时,可查看输出报错内容,我遇到的问题是serial库的问题。

首先,需要升级pip,如果系统中存在不止一个python解释器,那么需要指定IDF使用的python解释器的路径,例如我的IDF解释器路径为e:ESP32Toolpython_envidf4.4_py3.8_envscriptspython.exe,该路径可在终端提示窗口找到。

e:ESP32Toolpython_envidf4.4_py3.8_envscriptspython.exe -m pip install --upgrade pip

查看是否有serial和pyserial库。

e:ESP32Toolpython_envidf4.4_py3.8_envscriptspython.exe -m pip list


如图,系统中包含一个pyserial,则需要先卸载。

e:ESP32Toolpython_envidf4.4_py3.8_envscriptspython.exe -m uninstall pyserial

最后再安装pyserial。

e:ESP32Toolpython_envidf4.4_py3.8_envscriptspython.exe -m uninstall pyserial
总结

  更新IDF使用的python解释器的pip和pyserial。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/782996.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号