Can't install IDF on Windows10 PC
Posted: 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.
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.