Skip to content

Instantly share code, notes, and snippets.

@tjt263
Last active April 12, 2018 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjt263/3e4cb5e42be4256db9f2edad50675034 to your computer and use it in GitHub Desktop.
Save tjt263/3e4cb5e42be4256db9f2edad50675034 to your computer and use it in GitHub Desktop.
Fix your messed up homebrew python installs (macOS). For recent version & symlink conflicts.
#!/usr/bin/env bash
brew uninstall --force --ignore-dependencies python python2 python2.7 python3 python3.6 > /dev/null 2>&1;
brew install python@2 python@3 > /dev/null 2>&1;
echo;
for x in python python2 python3;
do
which $x;
readlink $(which $x);
$x --version;
echo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment