Last active
July 21, 2020 13:32
-
-
Save MNovak12/b2f28aa736c4fa15e8e1cc73bc97e904 to your computer and use it in GitHub Desktop.
Switch python version
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
#!/bin/bash -e | |
VERSION=$1 | |
rm /usr/local/bin/python | |
ln -s /usr/local/bin/python"$VERSION" /usr/local/bin/python | |
rm /usr/local/bin/pip | |
ln -s /usr/local/bin/pip"$VERSION" /usr/local/bin/pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
./switch_python_version.sh 2