安装出错 FileNotFoundError: [WinError 2] 系统找不到指定的文件

gdsnake1
Posts: 1
Joined: Thu Dec 10, 2020 1:54 am

安装出错 FileNotFoundError: [WinError 2] 系统找不到指定的文件

Postby gdsnake1 » Thu Dec 10, 2020 1:58 am

Traceback (most recent call last):
File "C:\esp-idf-v4.1\tools\idf_tools.py", line 1387, in <module>
main(sys.argv[1:])
File "C:\esp-idf-v4.1\tools\idf_tools.py", line 1383, in main
action_func(args)
File "C:\esp-idf-v4.1\tools\idf_tools.py", line 1172, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
File "C:\esp-idf-v4.1\tools\idf_tools.py", line 846, in get_python_env_path
idf_version_str = subprocess.check_output(['git', 'describe', '--tags'],
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

longmao
Posts: 1
Joined: Sat Jul 03, 2021 2:19 am

Re: 安装出错 FileNotFoundError: [WinError 2] 系统找不到指定的文件

Postby longmao » Sat Jul 03, 2021 2:22 am

我也遇到了这个问题,请问你是怎么解决的

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 安装出错 FileNotFoundError: [WinError 2] 系统找不到指定的文件

Postby ESP_Gargamel » Mon Jul 05, 2021 2:47 am

建议使用最新的 esp-idf-tools-setup 安装开发环境:https://dl.espressif.com/dl/esp-idf/

Who is online

Users browsing this forum: No registered users and 84 guests