Why two Python versions in default ESP-IDF tools installation

lafar6502
Posts: 31
Joined: Fri Mar 27, 2020 8:26 pm

Why two Python versions in default ESP-IDF tools installation

Postby lafar6502 » Fri Apr 18, 2025 7:26 pm

After installing ESP-IDF 5.4 via the web installer (Windows), i found the tools has two versions of Python in it. Why?

\idf-tools\python_env\idf5.4_py3.11_env\Scripts
and
\idf-tools\tools\idf-python\3.11.2

The question is related to my later attempt to configure ESP-IDF plugin in VSCode, or failure to do so
it fails on detecting valid Python environment as below
Sorry if it's something obvious, but i havent used ESP-IDF for few years and i'm not up to date with how to fix basic issues. What could be the solution for this?
Thanks!

`"C:\esp\idf-tools\tools\idf-python\3.11.2\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)`
Screenshot 2025-04-18 212405.png
Screenshot 2025-04-18 212405.png (71.38 KiB) Viewed 439 times

lafar6502
Posts: 31
Joined: Fri Mar 27, 2020 8:26 pm

Re: Why two Python versions in default ESP-IDF tools installation

Postby lafar6502 » Fri Apr 18, 2025 7:50 pm

ok python issue resolved with
`C:\esp\idf-tools\tools\idf-python\3.11.2>python -m ensurepip --upgrade

Who is online

Users browsing this forum: Qwantbot and 2 guests