Skip to content

Instantly share code, notes, and snippets.

@brysontyrrell
brysontyrrell / Install_Python_Ubuntu.sh
Last active Jun 30, 2017
Install Python from source on Ubuntu Linux
View Install_Python_Ubuntu.sh
#!/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