ESP32: IDF_PYTHON_ENV_PATH: (not set)

在Linux下编译esp32工程报错:

law@law:~/hello_world$ idf.py build
Setting IDF_PATH environment variable: /home/law/esp32/esp-idf
The following Python requirements are not satisfied:
pyserial>=3.3
future>=0.15.2
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
idf-component-manager>=0.2.99-beta
gdbgui==0.13.2.0
pygdbmi<=0.9.0.2
python-socketio<5
kconfiglib==13.7.1
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
construct==2.10.54
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/law/.local/bin:/home/law/esp32/esp-idf/tools:/usr/local/jdk1.8.0_202/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/apache-maven-3.8.3/bin

ESP-IDF v5.0-dev-342-g6322632a37

翻译如下

请按照ESP-IDF入门指南“设置工具”部分中的说明进行操作
诊断信息:
IDF_PYTHON_环境_路径:(未设置)

解决办法是:

编译之前先:
. /home/law/esp32/esp-idf/export.sh
然后在执行:
idf.py build
就没问题了!
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值