master
Guido Longoni 2021-11-12 12:49:14 +01:00
commit a203402403
1 changed files with 7 additions and 7 deletions

View File

@ -30,14 +30,14 @@ function feat_add_pip() {
feat_addpacks_pip_dev
curl https://pyenv.run | bash 2>&1
{ cat "$HOME/.bashrc"; echo "# Load pyenv automatically by adding
# the following to ~/.bashrc:
export PATH=\"/home/briq/.pyenv/bin:\$PATH\"
eval \"\$(pyenv init -)\"
eval \"\$(pyenv virtualenv-init -)\"
export N_PREFIX=\"\$HOME/.n_prefix\"
export PATH=\"\$N_PREFIX/bin:\$PATH\""; } > "$HOME/.bashrc.tmp"
{ echo "export PYENV_ROOT=\"\$HOME/.pyenv\"
export PATH=\"\$PYENV_ROOT/bin:\$PATH\"
eval \"\$(pyenv init --path)\""; cat "$HOME/.profile"; } > "$HOME/.profile.tmp"
mv "$HOME/.profile.tmp" "$HOME/.profile"
{ echo "eval \"\$(pyenv init -)\""; cat "$HOME/.bashrc"; } > "$HOME/.bashrc.tmp"
mv "$HOME/.bashrc.tmp" "$HOME/.bashrc"
. "$HOME/.profile"
. "$HOME/.bashrc"
LATESTPYTHON="$(pyenv install -l | grep '^[0-9\. ]*$' | sed -ne '$s|\s*||gp')"
pyenv install "$LATESTPYTHON"