Skip to content

Instantly share code, notes, and snippets.

@orsenthil
Created February 10, 2017 03:21
Show Gist options
  • Save orsenthil/a1dbaacd2af71f081008ffcde5a8d8ab to your computer and use it in GitHub Desktop.
Save orsenthil/a1dbaacd2af71f081008ffcde5a8d8ab to your computer and use it in GitHub Desktop.
Install Python3.6
pushd /tmp
echo "Installing Python"
curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar xvf Python-3.6.0.tgz
cd Python-3.6.0
./configure --prefix=$HOME/python36
make && make install
popd
pushd /tmp
echo "Installing pip"
curl -O https://bootstrap.pypa.io/get-pip.py
$HOME/python36/bin/python get-pip.py
$HOME/python36/bin/pip install virtualenv
popd
echo "Please add $HOME/python36/bin to your PATH"
echo "Create virtualenv: like virtualev yourvirtualenvname"
echo "Activate it: source yourvirtualenvname/bin/activate"
echo "And experiment!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment