ESP-IDF Extension for Visual Studio Code安装错误

cers000
Posts: 3
Joined: Fri Jun 25, 2021 1:13 pm

ESP-IDF Extension for Visual Studio Code安装错误

Postby cers000 » Fri Jun 25, 2021 1:17 pm

提示"C:\Users\z\.espressif\tools\idf-python\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)
更完整的提示:
Command failed: "C:\Users\z\.espressif\tools\idf-python\python.exe" -m pip --version
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\__main__.py", line 23, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 25, in <module>
from pip._internal.cli.progress_bars import BAR_TYPES
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\cli\progress_bars.py", line 12, in <module>
from pip._internal.utils.logging import get_indentation
File "C:\Users\z\.espressif\tools\idf-python\lib\site-packages\pip\_internal\utils\logging.py", line 9, in <module>
import logging.handlers
File "logging\handlers.py", line 26, in <module>
File "socket.py", line 49, in <module>
ImportError: DLL load failed while importing _socket: ��������

[attachment=0]无标题.png[/attachment]
Attachments
无标题.png
无标题.png (150.84 KiB) Viewed 5755 times

lihyxx
Posts: 4
Joined: Mon Jun 28, 2021 8:19 am

Re: ESP-IDF Extension for Visual Studio Code安装错误

Postby lihyxx » Mon Jun 28, 2021 8:38 am

重新安装一下python 试试

cers000
Posts: 3
Joined: Fri Jun 25, 2021 1:13 pm

Re: ESP-IDF Extension for Visual Studio Code安装错误

Postby cers000 » Sat Oct 02, 2021 8:41 am

lihyxx wrote:
Mon Jun 28, 2021 8:38 am
重新安装一下python 试试
成功了,但是每次打开一个项目都要重新走一遍配置流程

User avatar
fb_iceg
Posts: 18
Joined: Tue Aug 22, 2023 7:29 am

Re: ESP-IDF Extension for Visual Studio Code安装错误

Postby fb_iceg » Tue Aug 22, 2023 8:25 am

删除安装文件夹下 *:\Espressif\tools 内的 idf-git 和 idf-python 两个文件夹,在vscode内重试一下就好了。

Who is online

Users browsing this forum: No registered users and 133 guests