ESP32 VSCODE进入menuconfig时ESP-IDF idf.py menuconfig卡进度条,setuptools版本太高解决方法
menuconfig卡进度条
这个会影响设置
提示如下:
SDK Configuration Editor]
---------------------------ERROR--------------------------
The following Python requirements are not satisfied:
Requirement ‘setuptools<71.0.1,>=21’ was not met. Installed version: 80.9.0
To install the missing packages, please run “install.bat”
不满足以下 Python 要求:
未满足要求 ‘setuptools<71.0.1,>=21’。安装版本: 80.9.0
要安装缺失的软件包,请运行 “install.bat”
setuptools 71.0.1是不推荐使用的节点之一
删除高版本
pip uninstall setuptools
提示:
PS E:\ARDUINO\78\xiaozhi-esp32-1.7.6\xiaozhi-esp32-1.7.6> pip uninstall setuptools
Found existing installation: setuptools 80.9.0
Uninstalling setuptools-80.9.0:
Would remove:
c:\esp32.espressif\python_env\idf5.4_py3.11_env\lib\site-packages_distutils_hack*
c:\esp32.espressif\python_env\idf5.4_py3.11_env\lib\site-packages\distutils-precedence.pth
c:\esp32.espressif\python_env\idf5.4_py3.11_env\lib\site-packages\pkg_resources*
c:\esp32.espressif\python_env\idf5.4_py3.11_env\lib\site-packages\setuptools-80.9.0.dist-info*
c:\esp32.espressif\python_env\idf5.4_py3.11_env\lib\site-packages\setuptools*
Proceed (Y/n)? y
Successfully uninstalled setuptools-80.9.0
PS E:\ARDUINO\78\xiaozhi-esp32-1.7.6\xiaozhi-esp32-1.7.6>
安装低版本 setuptools 71.0.0
pip install setuptools==71.0.0
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting setuptools==71.0.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/01/82/a2c6c0a1612c89bdb21dc4d9196ba9e7dcbc2e285afda93ebdf663ba2ada/setuptools-71.0.0-py3-none-any.whl (908 kB)
Installing collected packages: setuptools
Successfully installed setuptools-71.0.0
安装 setuptools==71.0.1仍然不能打开menuconfig,要求是:setuptools<71.0.1,>=21
pip install setuptools71.0.1
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting setuptools71.0.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/39/11/6159cc30f99dbdccac3c74d67277505d0e0bfc059e6cc57ef2eefc9b8751/setuptools-71.0.1-py3-none-any.whl (2.2 MB)
WARNING: The candidate selected for download or install is a yanked version: ‘setuptools’ candidate (version 71.0.1 at https://pypi.tuna.tsinghua.edu.cn/packages/39/11/6159cc30f99dbdccac3c74d67277505d0e0bfc059e6cc57ef2eefc9b8751/setuptools-71.0.1-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/setuptools/) (requires-python:>=3.8))
Reason for being yanked:
Installing collected packages: setuptools
Successfully installed setuptools-71.0.1