Can't install IDF on Windows10 PC

Winkler
Posts: 3
Joined: Tue Dec 29, 2020 3:12 pm

Can't install IDF on Windows10 PC

Postby Winkler » Tue Dec 29, 2020 3:34 pm

I´m trying to install the esp-idf 2.3 on my computer but get an error towards the end of the installation:

Done, exit code=1
Running command: C:\Python\python.exe C:\ESP\.espressif\idf_tools_fallback.py --idf-path C:\ESP_IDF --tools C:\ESP\.espressif\tools_fallback.json install-python-env
Could not import runpy module
ModuleNotFoundError: No module named 'runpy'

Things I've checked:
I run the IDF installer as Administrator.
runpy.py is present in the Lib folder: C:\Users\Søren\AppData\Local\Programs\Python\Python37\Lib\
There's no path to the Lib folder so I tried adding it but it fails with the same error message.

Question:
Why does is say No module named 'runpy'?
Is there a .py missing after the module name? (the file in my Python37\Lib directory is called runpy.py)

Versions I'm trying to install:
esp-idf-tools-setup-2.3.exe
Python 3.7 (64-bit) in C:\Users\Søren\AppData\Local\Programs\Python\Python37\python.exe
Git 2.21.0.windows.1 in C:\Program Files\Git\cmd\git.exe
esp-idf-v4.2-rc in D:\Software\Espressif\esp-idf-v4.2-rc

I've tried many things since December 20th including browsing this board for similar issues.
I found similar issues but nothing that works for me, so your help would really be appreciated. :)

divraj
Posts: 4
Joined: Tue Dec 29, 2020 11:58 pm

Re: Can't install IDF on Windows10 PC

Postby divraj » Tue Dec 29, 2020 11:59 pm

I have the same issue. Were you able to resolve this?

ESP_Jan
Posts: 42
Joined: Tue Dec 01, 2020 10:56 am

Re: Can't install IDF on Windows10 PC

Postby ESP_Jan » Wed Dec 30, 2020 2:50 am

Hi Winkler,

as the installer log says, it runs C:\Python\python.exe
What python version do you have installed at that location?
Try selecting python 3.7 in the installer instead or installing a newer python version.

Jan

Winkler
Posts: 3
Joined: Tue Dec 29, 2020 3:12 pm

Re: Can't install IDF on Windows10 PC

Postby Winkler » Thu Dec 31, 2020 9:46 am

Thank you for the tip!
I hadn't noticed this.

The strange thing is that I don't have a C:\Python\ directory on my PC???
These are the directories I have on my C drive including hidden ones:
21/04/2019 11.11 <DIR> $Recycle.Bin
09/10/2020 02.25 <DIR> $WinREAgent
08/05/2019 22.56 40 C81E807201B5
25/08/2018 05.39 <JUNCTION> Documents and Settings [C:\Users]
14/12/2020 14.42 8.192 DumpStack.log.tmp
18/12/2020 19.21 3.387.150.336 hiberfil.sys
28/09/2017 12.51 <DIR> Intel
25/11/2019 21.04 <DIR> iShowII_EN
01/12/2006 23.37 904.704 msdia80.dll
25/08/2018 05.39 <DIR> OEM
30/12/2020 01.29 4.644.524.032 pagefile.sys
07/12/2019 10.14 <DIR> PerfLogs
21/12/2020 01.10 <DIR> Program Files
09/10/2020 19.53 <DIR> Program Files (x86)
09/10/2020 20.00 <DIR> ProgramData
09/10/2020 19.53 <DIR> Recovery
14/12/2020 14.42 16.777.216 swapfile.sys
28/12/2020 21.07 <DIR> System Volume Information
09/10/2020 19.54 <DIR> temp
09/10/2020 03.17 <DIR> Users
15/12/2020 21.14 <DIR> Windows

The only Python version I have on my PC is vesion 3.7.3 located here:
C:\Users\Søren\AppData\Local\Programs\Python\Python37\python.exe

Could the installer be creating a C:\Python\ directory and remove it when the installation fails?

Who is online

Users browsing this forum: No registered users and 66 guests