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

Jorgen
Posts: 64
Joined: Fri Dec 09, 2022 11:39 am

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

Postby Jorgen » Tue May 13, 2025 3:13 pm

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

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

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

Postby nopnop2002 » Wed May 14, 2025 10:43 am

"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

Jorgen
Posts: 64
Joined: Fri Dec 09, 2022 11:39 am

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

Postby Jorgen » Wed May 14, 2025 5:14 pm

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

real_mon2
Posts: 27
Joined: Wed Dec 25, 2024 4:59 pm

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

Postby real_mon2 » Sat Nov 29, 2025 3:59 pm

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!!

Who is online

Users browsing this forum: Amazon [Bot], Baidu [Spider], ChatGPT-User, Google [Bot] and 1 guest