Arduino IDE Esptool errors

Hello, when I try to install any code on esp32, I get the error in the picture, in general, I installed the current version of github on my computer from esptool, I restarted my computer, but there is no result, it works esptool.py through the terminal, but there is an import problem on the arduino ide, I would be glad if you could help me with this

Don't post pictures of errors. Just copy output and paste it here in code tags.

Can I ask why you installed a copy of esptool from the Espressif Github repository? ordinarily there should be no need for that as it already comes packaged with the ESP32 library.

Because it didn't work, I reinstalled it, but I just solved my problem, my problem was solved when I installed the python3-serial package in the Python VNEV virtual environment

I tried to program an ESP32 on my new laptop today. Just installed the ESP32 board library, loaded the program, compiled and uploaded and ran into exactly the same problem! The solution was the same - install python3-serial. Worth noting for future reference.

I am using a Linux Debian environment. I cannot download Python installations on my computer without a virtual environment. I think I forgot that I could not install it without a virtual environment. When I installed it in a virtual environment, my problem was solved. However, thank you for your help and interest.