Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
If you are using Homebrew, you can reinstall a corrupted Python environment like this:
brew uninstall --ignore-dependencies --force python python@2 unset PYTHONPATH brew install python python@2 I had another …