I am having major difficulty in installing MicroPython onto an ESP3 using my RPi3B+ (may ask about this elsewhere) but for now I am trying to achieve this on a new fresh install/distro of Raspbian.
However, despite installing the esptool.py command correctly as per instructions, I get this error in the terminal when attempting to run it...
bash: esptool.py: command not found
To clarify a bit: I have a RPi3B+ with an existing distro where the esptool command works fine, and another distro which I created today using a separate SD card, where attempting to use the esptool yields the above error. So, on same RPi3B+ with distro 1: esptool works fine, with distro 2: esptool does not.
What I don't understand is that I am able to run this on my existing Raspbian Stretch distro without this error.
Any help greatly appreciated. Thanks