1

I googled and couldn't find a solution to my nice problem: I have Ubuntu and I want to program a ESP32 ............... I tried a lot of pip commands ... but it didnt work. You have any idea how to install the correct packages? Maybe you can tell me what to do. I am really lost. I tried it last year and also failed.. Now I want to try it another time :)

   /.arduino15/packages/esp32/tools/esptool_py/3.0.0/esptool.py", line 38, in <module>
        import serial
    ImportError: No module named serial
1
  • did you install the esp32 arduino with Boards Manager?
    – Juraj
    Nov 18 '21 at 18:08
1

Problem resolved, Thank you. I had installed pyserial. The error surprisingly was related to the incorrect processor speed (!) in the Arduino IDE. I have no idea why that would influence the serial/pyserial function.

-1

Open terminal and enter this command python -m pip install pyserial it will download pyserial for you and you will not receive the above error. The above error is because you don't have pyserial installed on the system.

The related documentation for pyserial could be found here

5
  • sudo apt-get install python3-pip
    – jento
    Nov 26 '21 at 4:22
  • python3-pip ist schon die neueste Version (20.0.2-5ubuntu1.6). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 16 nicht aktualisiert.
    – jento
    Nov 26 '21 at 4:22
  • pip list modules [code] PyQt5 5.14.1 pyRFC3339 1.1 pyserial 3.5 python-apt 2.0.0+ubuntu0.20.4.6 python-dateutil 2.7.3 python-debian 0.1.36ubuntu1 python-gnupg 0.4.5[/code]
    – jento
    Nov 26 '21 at 4:23
  • 1
    python -m pip install pyserial /usr/bin/python: No module named pip
    – jento
    Nov 26 '21 at 4:25
  • @jento you will first need to install pip I considered you have pip installed to install pip use the following command sudo apt install python3-pip for python3 or you can use sudo apt install python-pip for python 2
    – Maaz Sk
    Dec 12 '21 at 5:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.