Page 1 of 1

No module named pip, python idf environment.

Posted: Fri Dec 18, 2020 6:16 am
by Viktor
Hi.
I use VSCode for building ESP32 firmware. I have vscode-esp-idf-extension. It builds, flashes and monitors successfully. But when I try to debug (pressing F5), is says:
ModuleNotFoundError: No module named 'win32api'
OK, I see that I need to install pywin32. But when I try to execute

Code: Select all

python -m pip install pywin32
from my project folder, it says:
D:\Viktor\software\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe: No module named pip
In fact I see pip.exe, pip3.exe and pip3.7.exe in idf4.1_py3.7_env\Scripts\. What's the problem? I guess the problem is in python environment, but it's to difficult to understand for me what's wrong with it.

Re: No module named pip, python idf environment.

Posted: Sat Dec 19, 2020 11:22 pm
by forumache
Viktor,

I don't have ESP-IDF installed on Windows, but you might try using pip directly (since you say you have a pip.exe):

pip install pywin32

Good luck!

Re: No module named pip, python idf environment.

Posted: Mon Dec 21, 2020 6:48 am
by Viktor
forumache wrote:
Sat Dec 19, 2020 11:22 pm
Viktor,

I don't have ESP-IDF installed on Windows, but you might try using pip directly (since you say you have a pip.exe):

pip install pywin32

Good luck!
You are right, it works. Thank you. Now I have a different error message :)
To be honest, I thought that I have already tried to install it. Maybe I tried to do it in a different way. In this case I did it from VSCode terminal from idf4.1_py3.7_env/Scripts/ folder.