环境:Windows 7的操作系统。
1、通过在Git上面下载esp-idf-master。
2、电脑上面安装了Python3.8的软件和Git工具。
3、通过VsCode 进入esp-idf-master目录,运行.\install.bat,发现有如下报错,请帮忙分析原因,谢谢
Installing ESP-IDF tools
Updating C:\Users\LXB\.espressif\idf-env.json
Selected targets are: esp32c5, esp32h2, esp32c2, esp32c61, esp32s2, esp32s3, esp32c3, esp32, esp32c6, esp32p4
Current system platform: win64
Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp-elf, riscv32-esp-elf, esp32ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util, esp-rom-elfs
Skipping xtensa-esp-elf-gdb@14.2_20240403 (already installed)
Skipping riscv32-esp-elf-gdb@14.2_20240403 (already installed)
Skipping xtensa-esp-elf@esp-14.2.0_20240906 (already installed)
Skipping riscv32-esp-elf@esp-14.2.0_20240906 (already installed)
Skipping esp32ulp-elf@2.38_20240113 (already installed)
Skipping cmake@3.30.2 (already installed)
Skipping openocd-esp32@v0.12.0-esp32-20241016 (already installed)
Skipping ninja@1.12.1 (already installed)
Skipping idf-exe@1.0.3 (already installed)
Skipping ccache@4.10.2 (already installed)
Skipping dfu-util@0.11 (already installed)
Skipping esp-rom-elfs@20241011 (already installed)
Setting up Python environment
Traceback (most recent call last):
File "D:\Espressif\esp-idf-master\tools\idf_tools.py", line 3252, in <module>
main(sys.argv[1:])
File "D:\Espressif\esp-idf-master\tools\idf_tools.py", line 3244, in main
action_func(args)
File "D:\Espressif\esp-idf-master\tools\idf_tools.py", line 2614, in action_install_python_env
if subprocess.run([sys.executable, '-m', 'venv', '-h'], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0:
File "D:\Program Files\Python38\Lib\subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\Program Files\Python38\Lib\subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\Program Files\Python38\Lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
win7环境下通过VSCode安装esp-idf
-
- Posts: 4
- Joined: Mon Nov 04, 2024 5:43 am
Re: win7环境下通过VSCode安装esp-idf
哪位大佬知道的,帮忙看看,非常感谢
Re: win7环境下通过VSCode安装esp-idf
大概率是由于 当前的python库和win7不兼容 导致。
人个的解决方案:升级系统。
人个的解决方案:升级系统。
-
- Posts: 4
- Joined: Mon Nov 04, 2024 5:43 am
Re: win7环境下通过VSCode安装esp-idf
谢谢,就是不想升级系统,软件装的比较多,升级系统又得重新装,我看帖子有人好像装上去过,不知道咋装的
Re: win7环境下通过VSCode安装esp-idf
尝试安装老版本的sdk ,如4.4
Re: win7环境下通过VSCode安装esp-idf
通过vscode安装esp-idf,具体是应用vscode中esp-idf扩展全自动完成,没有你说的又git又安Python3.8的过程,具体请参考github上有篇教程。
Who is online
Users browsing this forum: Google [Bot], Google Adsense [Bot] and 74 guests