No such file or directory: '/usr/local/bin/pip'
I've got in the same situation
what I do is remove pip file in /usr/local/bin
and reinstall pip
it worked!!
In my case, I had to upgrade pip from 22.1.2 to 22.2.1:
pip3 install --upgrade pip
Just run:$ hash -r
in bash and it will be solved.