ubuntu_install_python.sh 538 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/bash

set -e
set -u
set -o pipefail

7
# install python and pip, don't modify this, modify install_python_package.sh
8 9
apt-get update
apt-get install -y python-dev
10

11
# python 3.6
12 13 14 15 16
apt-get install -y software-properties-common

add-apt-repository ppa:jonathonf/python-3.6
apt-get update
apt-get install -y python-pip python-dev python3.6 python3.6-dev
17 18 19 20

rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3

# Install pip
21
cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python2 get-pip.py && python3.6 get-pip.py