Last active
January 6, 2023 02:11
-
-
Save alexandremendoncaalvaro/6eb05914ed4183718a72edcbfd41c053 to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -ex | |
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 '' >> ~/.zshrc | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(pyenv init -)"' >> ~/.zshrc | |
echo '' >> ~/.zshrc | |
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc | |
exec zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy and paste bellow commands to Ubuntu terminal:
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/alexandremendoncaalvaro/b468a2e7410403b2506608ff12325ece/raw/5bcaae34f93643bc0359141d927810f747f44b6e/config-ubuntu-py-pt1.sh)"
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/alexandremendoncaalvaro/6eb05914ed4183718a72edcbfd41c053/raw/b81ae70f1a8e305e702a7f8b6b86c948ce5e240e/config-ubuntu-py-pt2.sh)"