From 440847a39d5b3857c83583dba731597722203bc7 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 11 Dec 2021 13:32:56 +0100 Subject: [PATCH] chore(python): update Python environment setup script --- setup/python.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup/python.sh b/setup/python.sh index 2665064..7920da6 100755 --- a/setup/python.sh +++ b/setup/python.sh @@ -1,11 +1,12 @@ #!/bin/sh # Install Pyenv - curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash +curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash # Activate Pyenv -export PATH="~/.pyenv/bin:$PATH" -eval "$(pyenv init -)" +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init --path)" eval "$(pyenv virtualenv-init -)" pyenv install 2.7.17 @@ -22,3 +23,4 @@ pip3 install neovim pip3 install awscli +pyenv deactivate \ No newline at end of file