Ubuntu 编译nodemcu 报的错

../tools/esptool.py elf2image --flash_mode dio --flash_freq 40m .output/eagle/debug/image/eagle.app.v6.out -o ../bin/ Traceback (most recent call last): File "../tools/esptool.py", line 26, in import serial ImportError: No module named serial ../Makefile:202: recipe for target '.output/eagle/debug/bin/eagle.app.v6.bin' failed make[1]: *** [.output/eagle/debug/bin/eagle.app.v6.bin] Error 1 make[1]: Leaving directory '/home/ubuntu/nodemcu-firmware/app' Makefile:292: recipe for target '.subdirs' failed make: *** [.subdirs] Error 2

错误原因: 没有serial模块
解决办法: 【Ubuntu 编译nodemcu 报的错】在这之前报错请先安装好
apt-get install gccapt-get install pythonapt-get install python-pip

没有seria就安装呗。
pip install pyserial或者pip install serial

然后再make就可以了

    推荐阅读