Python is broken somehow after running a script that rewrites files. I get the error anytime I use it:
$ python
-bash: /usr/local/bin/python: No such file or directory
I did brew doctor:
$ brew unlink python && brew link python
Yesterday I tried to fix it by reinstalling:
$ brew update
$ brew install python
$ brew upgrade python
Based on what I found it seems like I need to symlink it but I don't want to make it worse and lose the entire OS.
$ which python
/usr/bin/python
How can I fix this Python?