Created
February 7, 2022 10:48
-
-
Save edwardstock/778442131e29dc0ec8d6545cbf85b185 to your computer and use it in GitHub Desktop.
Update Alternatives Python 2/3 Example
This file contains 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 | |
# install | |
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 | |
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 | |
# list | |
update-alternatives --list python | |
# change | |
update-alternatives --config python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment