MohsenMostafavi
MohsenMostafavi

Reputation: 11

arduino nodemcu error compiling for board esp32

when compiling a code in Arduino Idea get this error:

Traceback (most recent call last): File "/home/user/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in import serial ImportError: No module named serial

exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.

Upvotes: 0

Views: 1412

Answers (2)

user14129991
user14129991

Reputation: 1

sudo apt-get install python-serial

This worked for me. I am using a Linux Machine.

Upvotes: 0

Mohammad Mostafavi
Mohammad Mostafavi

Reputation: 367

you should install serial package. use this code:

# For debian base linux
sudo apt-get install python-serial
# For Centos
sudo yum install python3-serial
# For Fedora
sudo dnf install python3-serial

Upvotes: 3

Related Questions