完整日志如下:
E:\Espressif\frameworks\esp-idf-v4.4.4>install.bat
Installing ESP-IDF tools
Current system platform: win64
Selected targets are: esp32s3, esp32c3, esp32, esp32s2, esp32h2
Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util
Skipping xtensa-esp-elf-gdb@11.2_20220823 (already installed)
Skipping riscv32-esp-elf-gdb@11.2_20220823 (already installed)
Skipping xtensa-esp32-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping xtensa-esp32s3-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping riscv32-esp-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping esp32ulp-elf@2.35_20220830 (already installed)
Skipping cmake@3.23.1 (already installed)
Skipping openocd-esp32@v0.11.0-esp32-20221026 (already installed)
Skipping ninja@1.10.2 (already installed)
Skipping idf-exe@1.0.3 (already installed)
Skipping ccache@4.3 (already installed)
Skipping dfu-util@0.9 (already installed)
Setting up Python environment
pip 23.3.2 from C:\Users\caiguanhong\AppData\Local\Programs\Python\Python39\lib\site-packages\pip (python 3.9)
Installing virtualenv
Collecting virtualenv
Using cached virtualenv-20.25.0-py3-none-any.whl.metadata (4.5 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv)
Using cached distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv)
Using cached filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv)
Using cached platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)
Using cached virtualenv-20.25.0-py3-none-any.whl (3.8 MB)
Using cached distlib-0.3.8-py2.py3-none-any.whl (468 kB)
Using cached filelock-3.13.1-py3-none-any.whl (11 kB)
Using cached platformdirs-4.1.0-py3-none-any.whl (17 kB)
Installing collected packages: distlib, platformdirs, filelock, virtualenv
Successfully installed distlib-0.3.8 filelock-3.13.1 platformdirs-4.1.0 virtualenv-20.25.0
Creating a new Python environment in E:\esp\Espressif\python_env\idf4.4_py3.9_env
C:\Users\caiguanhong\AppData\Local\Programs\Python\Python39\python.exe: No module named virtualenv
Traceback (most recent call last):
File "E:\Espressif\frameworks\esp-idf-v4.4.4\tools\idf_tools.py", line 1976, in <module>
main(sys.argv[1:])
File "E:\Espressif\frameworks\esp-idf-v4.4.4\tools\idf_tools.py", line 1972, in main
action_func(args)
File "E:\Espressif\frameworks\esp-idf-v4.4.4\tools\idf_tools.py", line 1598, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv',
File "C:\Users\caiguanhong\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\caiguanhong\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\caiguanhong\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '--seeder', 'pip', 'E:\\esp\\Espressif\\python_env\\idf4.4_py3.9_env']' returned non-zero exit status 1.
当出现异常报错时,尝试运行如下指令:
py -m pip install numpy
pip install pipenv
E:\esp\Espressif\python_env\idf4.4_py3.9_env\Scripts\python.exe -m pip install --upgrade pip
完成后,再重新运行如下指令安装工具链:
install.bat
export.bat