Empowering you to understand your world

ESP32 Troubleshooting: “ModuleNotFoundError: No module named ‘serial'”

If you are trying to upload a program to your ESP32 using Arduino IDE but are receiving the following error, it means that the Python module ‘serial’ was not found and needs to either be installed or made accessible to the IDE if it was already installed.

ModuleNotFoundError: No module named 'serial' exit status 1 Error compiling for board Adafruit ESP32 Feather.

The solution to this is to install the pyserial library using the command below, as serial communication is used to communicate with your ESP32 over USB.

python3 -m pip install pyserial
Subscribe to our newsletter
Get notified when new content is published