Page 1 of 1

ESP-IDF Extension for VSC - (ERROR INVALID PIP)

Posted: Tue May 13, 2025 3:13 pm
by Jorgen
I am upgrading to ESP-IDF 5.4.1. I use Windows 11 and the latest version of Visual Studio Code (VSC).

When I start configuring ESP-IDF within VSC, I get the following error:
"c:\Espressif\tools\idf-python\3.11.2\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)

The OUTPUT is (last lines):
idf-git-2.39.2-win64.zip progress: 99.99% (28522.73 / 28526.53) KB
idf-git-2.39.2-win64.zip progress: 100.00% (28525.51 / 28526.53) KB
idf-git-2.39.2-win64.zip progress: 100.00% (28526.53 / 28526.53) KB
Installing c:\Espressif\tools\idf-git\2.39.2 ...
Extracted c:\Espressif\tools\idf-git\2.39.2 ...
Using existing c:\Espressif\tools\idf-python\3.11.2
"c:\Espressif\tools\idf-python\3.11.2\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)

I have tried some hints, which I found by searching the net, but nothing solved my problem.
I have deinstalled and reinstalled both ESP-IDF version 5.4.1 and VSC, the problem remains.

Please, how do I solve this issue?

Regards,
Jorgen

Re: ESP-IDF Extension for VSC - (ERROR INVALID PIP)

Posted: Wed May 14, 2025 10:43 am
by nopnop2002
"c:\Espressif\tools\idf-python\3.11.2\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)
Your problem doesn't seem to be with ESP-IDF or VS-CODE, but with the version of PIP.

Try updating pip.

viewtopic.php?t=23976

Re: ESP-IDF Extension for VSC - (ERROR INVALID PIP)

Posted: Wed May 14, 2025 5:14 pm
by Jorgen
Thank you for your suggestion.

I gave up. After uninstalling and reinstalling a number of times including python, I gave up.

I consulted ChatGPT and followed its instruction for uninstalling and cleaning up i.e. deleting files and various entries created by ESP-IDF or VS Code installations. Then I followed the approach describe by ChatGPT for installing ESP-IDF in VS Code. Voila, it works.

It would be helpful having some well proven procedures to follow when upgrading ESP-IDF to a new release.


Regards,
Jorgen

Re: ESP-IDF Extension for VSC - (ERROR INVALID PIP)

Posted: Sat Nov 29, 2025 3:59 pm
by real_mon2
Stuck on the same issue. Will hunt.

Update - got it installed!!!

As per above links, here is the solution that worked here:

Delete idf-git and the idf-python folder from the *:\Espressif\tools directory and try again。


Thank you for this advice!!