vscode安装报乱码

在Vscode安装过程中输出界面报如下错误

'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

在这里插入图片描述

解决办法

Windows+R输入cmd而后输入

cd C:\Users\你自己的用户名\esp\esp-idf
export.bat

正常输出应该为

在这里插入图片描述
乱码输出为Adding ESP-IDF tools to PATH…后有许多路径,将路径添加到环境变量中
在这里插入图片描述

添加环境变量

打开环境变量
在这里插入图片描述

在Path中添加上述的路径
在这里插入图片描述
在这里插入图片描述

重启vscode编译无问题
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

聚四氟乙烯ol

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值