I had a problem uploading a sketch from the Arduino IDE to an ESP32, the warning was that python was missing from the $PATH. I did a which python
which didn't return anything. This was strange because before upgrading from 19.10 to 20.04 I had no problems uploading from the Arduino IDE to an ESP32 .
I've noticed that the 20.04 upgrade removes quite a few often used Gnome apps such as gnome-logs and gnome-calculator, in fact I mentioned it here. So I simply ran sudo apt install python
to reinstall python. Python was installed and the IDE is now uploading to the ESP32 as it should. But I noticed that the version of Python installed was python2, which I thought was end of life and had been replaced with python3. Why is the Ubuntu repository still installing python2? And should I remove this and install python3?
Edit: Output of dpkg -l | grep python-is
ii python-is-python2 2.7.17-4
all symlinks /usr/bin/python to the DEPRECATED python2
python-is-python2
before as dependency, I think. Please add output ofdpkg -l | grep python-is
to the question by editing it.