Description
New PC, fresh install of Ubuntu 20.04 LTS Desktop (Release), Arduino IDE 1.8.12
Error: "exec: "python": executable file not found in $PATH
Reason: python2 is obsolete, so there is no /usr/bin/python by default any more
Workaround:
sudo apt install python-is-python3 (just sets missing symlink)
sudo apt install python3-pip
Prevent python(2) to be installed via dependencies:
sudo apt-mark hold python2 python2-minimal python2.7 python2.7-minimal libpython2-stdlib
After this compiling works – but upload fails (A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header)
Upload works after pressing the „boot“ button on an NODEMCU 32S (on my 2nd system. Ubuntu 16.04 LTS, the upload works without pressing any button)
Ubuntu 20.04 is a major OS and should be supported without any (bleeding) workarounds