【填坑】ESP-IDF 环境安装常见报错信息和解决方案

文章目录

    • Windows 平台 ESP-IDF 环境安装常见报错信息和解决方案
      • 一、install 时报错
        • **Q1 : 错误信息:Download failed 操作超时 或者 installation has failed with exit code -2**
        • **Q2 : 错误信息:Download failed: an error occurred in the secure channel support**
        • **Q3 : 错误信息:'python':permission denied**
      • 二、export.bat 时报错
        • **Q1. 错误信息:'.' 不是内部或外部命令,也不是可运行的程序**
        • **Q2. 错误信息:File "...\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified**
      • 三、idf.py build 时报错
        • **Q1. 错误信息: idf.py 不是内部或外部命令,也不是可运行的程序**
        • **Q2. 错误信息: Windows requires an MSYS2 version of gcc on the PATH to build mconf-idf.**

Windows 平台 ESP-IDF 环境安装常见报错信息和解决方案

一、install 时报错

Q1 : 错误信息:Download failed 操作超时 或者 installation has failed with exit code -2

【填坑】ESP-IDF 环境安装常见报错信息和解决方案_第1张图片

A1:原因和解决方法:网络问题,请换个网络环境重试,如果实在下不下来,可参考以下链接手动安装

  • 如何使用 Gitee 快速搭建 ESP-IDF 开发环境(Windows 版本)
Q2 : 错误信息:Download failed: an error occurred in the secure channel support

一般在 Windows 7 比较老的版本出现
【填坑】ESP-IDF 环境安装常见报错信息和解决方案_第2张图片

A2:原因和解决方法:下载工具问题,试用以下方法解决

方法一:手动下载安装 python 和 git,然后再试用该工具搭建

方法二:全程手动搭建环境, 如何使用 Gitee 快速搭建 ESP-IDF 开发环境(Windows 版本)

方法三:更新Windows WinHTTP的默认安全协议为

你可能感兴趣的:(ESP32,ESP-IDF,物联网,ESP32S2)