Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bootstrap debian vm on gcp with up-to-date python
set -x
sudo apt update
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
curl https://pyenv.run | bash
original_path=$PATH
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv install 3.7.4
PATH=$original_path
sudo ln -s $HOME/.pyenv/versions/3.7.4/bin/python3.7 /usr/local/bin/python3.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.