Skip to content

Instantly share code, notes, and snippets.

@alexandremendoncaalvaro
Last active July 1, 2023 02:16
Show Gist options
  • Save alexandremendoncaalvaro/2b9a6cc9a3a5b1ee2b0980502efc50ad to your computer and use it in GitHub Desktop.
Save alexandremendoncaalvaro/2b9a6cc9a3a5b1ee2b0980502efc50ad to your computer and use it in GitHub Desktop.
Configura o pyenv e poetry no WSL
#!/bin/bash
set -ex
echo "[INFO] System Update and Upgrade.."
sudo apt update && sudo apt upgrade -y
echo "[INFO] Installing Python3/ Pyenv Dependencies.."
sudo apt install -y python3-pip git make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
gdb lcov libgdbm-dev libncurses5-dev libreadline6-dev \
lzma lzma-dev uuid-dev
echo "[INFO] Installing Pyenv.."
curl https://pyenv.run | bash
echo "[INFO] Installing Poetry.."
curl -sSL https://install.python-poetry.org | python3 -
echo "[INFO] Configuring System Variables.."
echo '' >> ~/.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo '' >> ~/.bashrc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment