ESP-IDF Python:FileNotFoundError:[WinError 2]系统找不到指定的文件

时间:2019-12-03 09:55:33

标签: python esp-idf

在终端中尝试idf.py menuconfig时,我得到以下回溯:

D:\School\esp-idf\examples\get-started\hello_world>python %IDF_PATH%\tools\idf.py menuconfig
Checking Python dependencies...
Python requirements from D:\School\esp-idf\requirements.txt are satisfied.
Running ninja in directory D:\School\esp-idf\examples\get-started\hello_world\build
Executing "ninja menuconfig"...
Traceback (most recent call last):
 File "D:\School\esp-idf\tools\idf.py", line 615, in <module>
  main()
 File "D:\School\esp-idf\tools\idf.py", line 594, in main
  execute_action(actions[0], actions[1:])
 File "D:\School\esp-idf\tools\idf.py", line 588, in execute_action
  function(action, args)
 File "D:\School\esp-idf\tools\idf.py", line 247, in build_target
  _run_tool(generator_cmd[0], generator_cmd + [target_name], args.build_dir)
 File "D:\School\esp-idf\tools\idf.py", line 86, in _run_tool
  subprocess.check_call(args, env=os.environ, cwd=cwd)
 File "D:\School\Python 37\lib\subprocess.py", line 342, in check_call
  retcode = call(*popenargs, **kwargs)
 File "D:\School\Python 37\lib\subprocess.py", line 323, in call
  with Popen(*popenargs, **kwargs) as p:
 File "D:\School\Python 37\lib\subprocess.py", line 775, in __init__
  restore_signals, start_new_session)
 File "D:\School\Python 37\lib\subprocess.py", line 1178, in _execute_child
  startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

我正在使用Python 3.7.3。 预先感谢

0 个答案:

没有答案