IDF Installer fails with build tools requirements - IDF 5.0 release branch (VSC-1003)
See original GitHub issueOS
Windows
Operating System version
11
Visual Studio Code version
1.73
ESP-IDF version
5.0
Python version
3.8
Doctor command output
Board is not relevant since its an installation issue.
Extension
Failed to build psutil error: subprocess-exited-with-error
Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1
[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects Command failed: “C:\Users\WDAGUtilityAccount.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe” -m pip install --upgrade --constraint “C:\Users\WDAGUtilityAccount.espressif\espidf.constraints.v5.0.txt” --no-warn-script-location -r “c:\Users\WDAGUtilityAccount.vscode\extensions\espressif.esp-idf-extension-1.5.1\esp_debug_adapter\requirements.txt” error: subprocess-exited-with-error
Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1
[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects Command failed: “C:\Users\WDAGUtilityAccount.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe” -m pip install --upgrade --constraint “C:\Users\WDAGUtilityAccount.espressif\espidf.constraints.v5.0.txt” --no-warn-script-location -r “c:\Users\WDAGUtilityAccount.vscode\extensions\espressif.esp-idf-extension-1.5.1\esp_debug_adapter\requirements.txt” error: subprocess-exited-with-error
Building wheel for psutil (pyproject.toml) did not run successfully. exit code: 1
[38 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\psutil copying psutil_common.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_compat.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psaix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psbsd.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pslinux.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psosx.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_psposix.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pssunos.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_pswindows.py -> build\lib.win-amd64-cpython-38\psutil copying psutil_init_.py -> build\lib.win-amd64-cpython-38\psutil creating build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\runner.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_aix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_memleaks.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_testutils.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_init_.py -> build\lib.win-amd64-cpython-38\psutil\tests copying psutil\tests_main_.py -> build\lib.win-amd64-cpython-38\psutil\tests running build_ext building ‘psutil._psutil_windows’ extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
Description
I am trying to install VSCODE + ESP-IDF on fresh machine (Windows Sandbox).
Installation stops at the end with the following error message about Microsoft C++ Build Tools
.
Keep in mind this pre-requisite is not mentioned anywhere for the installation.
If you open Built Tools installer there is a whole lot of things selected with some GB+ content. But for my test requirements I need only the bare minimum to run VSCODE+IDF+IDF Extension.
building 'psutil._psutil_windows' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Debug Message
building 'psutil._psutil_windows' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
### Other Steps to Reproduce
Windows 11 + Latest VS Code
I am using Windows Sandbox for installer testing right now. So the machine instance is clean without any other software.
### I have checked existing issues, online documentation and the Troubleshooting Guide
- [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Issue Analytics
- State:
- Created 10 months ago
- Comments:8
Top GitHub Comments
I was able to install. Probably that fix worked.
I experienced this issue today on a fresh machine, even previous esp-idf versions such as 4.X are failing setup due to psutil python package failure exiting the installation