【问题解决】ESP32报错:The following Python requirements are not satisfied

问题:

The following Python requirements are not satisfied:
click>=5.0
pyserial>=3.0
future>=0.15.2
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
Please refer to the Get Started section of the ESP-IDF Programming Guide for setting up the required packages.
Alternatively, you can run "/usr/bin/python -m pip install --user -r /home/pjw/ESP32/esp-idf/requirements.txt" for resolving the issue.
make: *** 没有规则可制作目标“check_python_dependencies”,由“menuconfig” 需求。 停止。

原因:

缺少python工具包


解决:

按照提示执行:(后面路径使用esp-idf实际路径)

/usr/bin/python -m pip install --user -r /home/pjw/ESP32/esp-idf/requirements.txt

在这里插入图片描述


再次报错:

Toolchain path: /home/pjw/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp-2020r3
Compiler version: 8.4.0
The following Python requirements are not satisfied:
gdbgui==0.13.2.0
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
Diagnostic information:
    IDF_PYTHON_ENV_PATH: (not set)
    Python interpreter used: /usr/bin/python
    Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
    PATH: /home/pjw/HarmonyOS/tools/node-v14.15.3-linux-x64/bin:/home/pjw/HarmonyOS/tools/gcc_riscv32/bin:/home/pjw/HarmonyOS/tools/ninja:/home/pjw/HarmonyOS/tools/gn:/home/pjw/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin:/home/pjw/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin:/usr/local/arm/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin
make: *** 没有规则可制作目标“check_python_dependencies”,由“/home/pjw/ESP32/project/hello_world/build/include/config/auto.conf” 需求。 停止。

解决:

python -m pip install --user -r /home/pjw/ESP32/esp-idf/requirements.txt
  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值