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 <module>
    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模塊

解決辦法:

在這之前報錯請先安裝好

apt-get install gcc

apt-get install python

apt-get install python-pip

沒有seria就安裝唄。

pip install pyserial

或者

pip install serial

然後再make就可以了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章