2021-11-22 22:12:31.775 Running command: D:\WorkForms\Espressif\.espressif\tools\idf-python\3.8.7\python.exe "C:\Users\80689\Downloads\esp-idf-master\\tools\idf_tools.py" --idf-path C:\Users\80689\Downloads\esp-idf-master\ install
Selected targets are: esp32c3, esp32s2, esp32s3, esp32
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util
Installing xtensa-esp32-elf@esp-2021r2-8.4.0
Downloading xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
Done
Extracting D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\tools\xtensa-esp32-elf\esp-2021r2-8.4.0
Installing xtensa-esp32s2-elf@esp-2021r2-8.4.0
Downloading xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
WARNING: Download failure [WinError 10053] 你的主机中的软件中止了一个已建立的连接。
WARNING: Failed to
ownload https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
Downloading xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
WARNING: Download failure <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>
WARNING: Failed to download https
/github.com/espressif/crosstool-NG/releases/download/esp-2021r2/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
Downloading xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
WARNING: Download failure <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>
WARNING: Failed to download https
/github.com/espressif/crosstool-NG/releases/download/esp-2021r2/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip to D:\WorkForms\Espressif\.espressif\dist\xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch1-win64.zip.tmp
ERROR: Failed to download, and retry count has expired
Traceback (most recent call last):
File "C:\Users\80689\Downloads\esp-idf-master\\tools\idf_tools.py", line 1821, in <module>
main(sys.argv[1:])
File "C:\Users\80689\Downloads\esp-idf-master\\tools\idf_tools.py", line 1813, in main
action_func(args)
File "C:\Users\80689\Downloads\esp-idf-master\\tools\idf_tools.py", line 1460, in action_install
tool_obj.download(tool_version)
File "C:\Users\80689\Downloads\esp-idf-master\\tools\idf_tools.py", line 715, in download
raise DownloadError()
__main__.DownloadError
2021-11-22 22:12:31.775 --------
2021-11-22 22:12:31.775 Message box (OK):
Installation has failed with exit code 1
2021-11-22 22:12:40.873 User chose OK.
2021-11-22 22:12:40.886 Message box (Yes/No):
Installation log has been created, it may contain more information about the problem.
Display the installation log now?
2021-11-22 22:12:49.133 User chose Yes.
2021-11-22 22:12:49.231 CurStepChanged raised an exception.
windows11
esp-idf-tools-setup-2.3
esp-idf-release-v4.2
试试下载 ESP-IDF 工具安装器,地址如下:
https://dl.espressif.com/dl/esp-idf-tools-setup-2.3.exe
在网上找了许多解决方案,最终在降低pip版本后解决了(我降到了9.0.3,再安装就成功了)