我按照他们的 github 页面上的描述安装了 esp-open-sdk。现在我尝试编译 blinky-example(我还将 xtensa 编译器添加到我的 PATH 变量中)。我将 blinky 文件夹移动到:
如果我输入“make”我得到:
代码:
全选esptool.py elf2image blinky
Traceback (most recent call last):
File "/home/test/Desktop/opt/esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 26, in
import serial
ImportError: No module named serial
Makefile:7: recipe for target 'blinky-0x00000.bin' failed
make: *** [blinky-0x00000.bin] Error 1
即使我通过“pip install pyserial”和“sudo apt-get install python-serial”安装了pyserial。我想知道,为什么它仍然无法正常工作?我注意到,python 有两个 dist-packages 目录,一个在:
中,一个在:
那么哪个文件夹应该包含pyserial 文件?很感谢任何形式的帮助