Skip to content

Instantly share code, notes, and snippets.

@drillan
drillan / install_python36.sh
Last active November 15, 2017 05:45
Install Python3.6 for Ubuntu
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:jonathonf/python-3.6
sudo apt update
sudo apt install -y python3-pip python3-dev
sudo apt install -y python3.6 python3.6-dev python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
# Install Python2 environment for Bash on Ubuntu on Windows build 14943 or earlier
# respond to this issue -> https://github.com/Microsoft/BashOnWindows/issues/185
export DEBIAN_FRONTEND=noninteractive
sudo sh -c 'echo 127.0.1.1 $(hostname) >> /etc/hosts'
sudo sed -i -e 's%http://.*.ubuntu.com%http://ftp.jaist.ac.jp/pub/Linux%g' /etc/apt/sources.list
sudo -E add-apt-repository -y ppa:fkrull/deadsnakes-python2.7
sudo -E add-apt-repository -y ppa:aseering/wsl
sudo -E apt-get -y -qq update