ESP32-IDF-Python版本适配
报错现象
non zero exit code 1
The following Python requirements are not satisfied:
Requirement ‘idf-component-manager~=1.2’ was not met. Installed version: 2.1.2
To install the missing packages, please run “install.bat”
Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Espressif\python_env\idf5.2_py3.11_env
Python interpreter used: C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe
Constraint file: C:\Espressif\espidf.constraints.v5.2.txt
Requirement files:
C:/Espressif/frameworks/esp-idf-v5.2.1/tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe
ESP-IDF v5.2.1-dirty
分析错误
错误信息显示 Python 包 idf-component-manager 的版本不符合要求。具体来说,它需要版本 ~=1.2(即 >= 1.2.0 且 < 2