Skip to content

Instantly share code, notes, and snippets.

@brysontyrrell
brysontyrrell / Install_Python_Ubuntu.sh
Last active June 30, 2017 02:54
Install Python from source on Ubuntu Linux
#!/bin/bash
# This script will install specific versions of Python on Ubuntu Linux servers
if [ "$(whoami)" != "root" ]; then
echo "WARNING: You must run this script as 'root'"
# This shortcut method will fail if the script file does not have execute permissions
exec sudo -- "$0" "$@"
fi
inputVersion=$1
if [[ $inputVersion == "" ]]; then