Page 1 of 1

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

Posted: Fri Jun 25, 2021 1:17 pm
by cers000
提示"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]

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

Posted: Mon Jun 28, 2021 8:38 am
by lihyxx
重新安装一下python 试试

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

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

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

Posted: Tue Aug 22, 2023 8:25 am
by fb_iceg
删除安装文件夹下 *:\Espressif\tools 内的 idf-git 和 idf-python 两个文件夹,在vscode内重试一下就好了。