Created
January 18, 2020 08:52
-
-
Save look4regev/730ec95e4247a719ffe9115920ac0bba to your computer and use it in GitHub Desktop.
Quick install script for python3.7.2 by asdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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