为什么VScode的IDF这么难装?

led_idf
Posts: 4
Joined: Tue Nov 08, 2022 4:27 am

为什么VScode的IDF这么难装?

Postby led_idf » Tue Nov 08, 2022 4:45 am

本来以为arduino的esp32就够难安装了,没想到win10上vscode的IDF才是灾难

但是没有办法现在arduino的不够用了,没有办法用meun config去配置一些细节的设置用于节约内存

只能安装IDF

但是从昨晚上装到现在都没有装好,

一开始是github的源没法下载,后来换了官方的,安装过程又出一堆问题

主要在py上,乱七八糟爆了一堆错,一个个搜索再安装,但是还是各种问题,最后换了清华的pip源稍微好了一点

但是现在依然安装不上

我的系统是win10 vscode 稳定版

安装的4.4 还是5 都试了全部都会卡在一些莫名奇妙的地方

目前是卡在最后一个py的环境安装上

下面是报错,那位大神来帮个忙呗,


building 'psutil._psutil_windows' extension
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\psutil
creating build\temp.win-amd64-cpython-38\Release\psutil\arch
creating build\temp.win-amd64-cpython-38\Release\psutil\arch\windows
"Y:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=594 -DPy_LIMITED_API=0x03060000 -DPSUTIL_WINDOWS=1 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER_=0x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IH:\Espressif\python_env\idf4.4_py3.8_env\include -IH:\Espressif\tools\idf-python\3.8.7\include -IH:\Espressif\tools\idf-python\3.8.7\Include "-IY:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IY:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcpsutil/_psutil_common.c /Fobuild\temp.win-amd64-cpython-38\Release\psutil/_psutil_common.obj
_psutil_common.c
psutil/_psutil_common.c(9): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'Y:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for psutil
ERROR: Could not build wheels for psutil which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 20.3.3; however, version 22.3.1 is available.
You should consider upgrading via the 'H:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.

RogerWY
Posts: 4
Joined: Mon Jul 19, 2021 9:34 am

Re: 为什么VScode的IDF这么难装?

Postby RogerWY » Wed Nov 16, 2022 6:17 am

Y:\\Program Files (x86)\\Microsoft Visual studio code

把vscode的安装路径换一下,不要有空格,比如你可以修改为Y:\\VSCODE 这个路径,
然后再重新安装IDF

Who is online

Users browsing this forum: No registered users and 95 guests