No module named pip, python idf environment.

Viktor
Posts: 10
Joined: Mon Nov 30, 2020 10:48 am

No module named pip, python idf environment.

Postby Viktor » Fri Dec 18, 2020 6:16 am

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.

forumache
Posts: 1
Joined: Sat Dec 19, 2020 11:12 pm

Re: No module named pip, python idf environment.

Postby forumache » 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!

Viktor
Posts: 10
Joined: Mon Nov 30, 2020 10:48 am

Re: No module named pip, python idf environment.

Postby Viktor » Mon Dec 21, 2020 6:48 am

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.

Who is online

Users browsing this forum: No registered users and 39 guests