25 lines
641 B
Bash
25 lines
641 B
Bash
sudo apt update
|
|
|
|
sudo apt install software-properties-common gnupg -y --no-install-recommends --no-install-suggests
|
|
|
|
sudo apt install make clang build-essential zlib1g-dev libffi-dev libbz2-dev libreadline-dev libsqlite3-dev -y --no-install-recommends --no-install-suggests
|
|
|
|
sudo apt-add-repository -y ppa:rael-gc/rvm
|
|
|
|
sudo apt install libssl1.0-dev -y
|
|
|
|
curl https://pyenv.run | bash
|
|
|
|
cat << 'END' >> ~/.profile
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
|
eval "$(pyenv init -)"
|
|
END
|
|
|
|
source ~/.profile
|
|
|
|
CC=clang pyenv install 3.2.6
|
|
|
|
pyenv shell 3.2.6
|
|
|
|
echo pyenv shell 3.2.6 >> ~/.profile |