Last active
April 12, 2018 12:28
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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