Skip to content

Instantly share code, notes, and snippets.

@look4regev
Created January 18, 2020 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save look4regev/730ec95e4247a719ffe9115920ac0bba to your computer and use it in GitHub Desktop.
Save look4regev/730ec95e4247a719ffe9115920ac0bba to your computer and use it in GitHub Desktop.
Quick install script for python3.7.2 by asdf
#!/bin/bash -e
ASDF_VERSION=v0.7.1
PYTHON3_VERSION372=3.7.2
if [ ! -d "$HOME/.asdf" ] ; then
git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch $ASDF_VERSION
fi
source $HOME/.asdf/asdf.sh
source $HOME/.asdf/completions/asdf.bash
if ! asdf plugin-list | grep -q python; then
asdf plugin-add python
fi
asdf install python $PYTHON3_VERSION372
asdf global python $PYTHON3_VERSION372
pip install -U pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment