diff --git a/linux/system/python-alternatives.sh b/linux/system/python-alternatives.sh new file mode 100755 index 0000000..a685ca4 --- /dev/null +++ b/linux/system/python-alternatives.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +for python in /usr/bin/python*; do + if [[ $(basename $python) =~ ^python[0-9][.][0-9]$ ]]; then + sudo update-alternatives --install /usr/bin/python python $python 1 + fi +done + +sudo update-alternatives --config python