我按照书中的步骤安装完了esp-idf v4.3.2,然后按照书中P29安装ESP-IDF开发工具链,用 ./install.sh命令,但是不能安装成功,出现以下错误,不知怎么解决,请教一下啊。我是在M2版macbook上面进行以上操作的。
(base) chan@MacBook-Air esp-idf % ./install.sh
Detecting the Python interpreter
Checking "python" ...
Python 3.8.8
"python" has been detected
Installing ESP-IDF tools
Traceback (most recent call last):
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1818, in <module>
main(sys.argv[1:])
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1814, in main
action_func(args)
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1414, in action_install
targets = clean_targets(args.targets)
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1077, in clean_targets
export_targets_to_idf_env_json(targets_from_tools_json)
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1045, in export_targets_to_idf_env_json
targets = list(set(targets + get_user_defined_targets()))
File "/Users/chan/opt/esp/ESP-IDF_v4.3.2/esp-idf/tools/idf_tools.py", line 1091, in get_user_defined_targets
if env == idf_env_json['idfSelectedId']:
KeyError: 'idfSelectedId'
关于书中“安装ESP-IDF开发工具链”的问题
Moderator: ESP_ZT
Who is online
Users browsing this forum: No registered users and 7 guests