ESP32S3无法打开idf.py menuconfig — windows环境

报错

(1)在windows环境下,很多想使用idf.py menuconfig对ESP32进行配置,但输入idf.py menuconfig却出现如下报错

menuconfig failed to import the standard Python 'curses' library. Try
installing a package like windows-curses
(https://github.com/zephyrproject-rtos/windows-curses) by running this command
in cmd.exe:

    pip install windows-curses

Starting with Kconfiglib 13.0.0, windows-curses is no longer automatically
installed when installing Kconfiglib via pip on Windows (because it breaks
installation on MSYS2).

Exception:
ModuleNotFoundError: No module named '_curses'

解决办法1

(1)打开终端,先输入pip install windows-curses,等待他安装环境。之后再输入idf.py menuconfig即可打开menuconfig。

pip install windows-curses
idf.py menuconfig

ESP32S3无法打开idf.py menuconfig — windows环境_第1张图片

解决办法2

(1)可能有些人不太习惯使用menuconfig。vscode提供了另外一种配置方法:

ESP32S3无法打开idf.py menuconfig — windows环境_第2张图片

你可能感兴趣的:(#,ESP32S3,windows,单片机)