0

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.

1
  • Compile errors are difficult to diagnose without at least some code. Commented Apr 21, 2020 at 15:39

2 Answers 2

3

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
Sign up to request clarification or add additional context in comments.

Comments

0
sudo apt-get install python-serial

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.