在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
就没问题了!
|