Since awscli doesn't exist in the toolbox, you must have installed it via PIP, so it's not a case that it stopped working, it's a case that you've removed python/pip v2.
Did you try to reinstall awscli with pip3?
And yes, you can have python2 and python3 installed on the same machine.
------------------------------
José Pina Coelho
IT Specialist at Kyndryl
------------------------------