I had this issue as well. In my case, installing graphviz pulled in python3.
brew unlink python@2
took care of my situation.
I had this issue as well. In my case, installing graphviz pulled in python3.
brew unlink python@2
took care of my situation.