Last active
January 7, 2022 06:37
-
-
Save Proteusiq/32106f1c85abdf170b360d329124af2a to your computer and use it in GitHub Desktop.
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 | |
sudo apt update -y | |
sudo apt install git gcc make openssl libssl-dev \ | |
libbz2-dev libreadline-dev libsqlite3-dev zlib1g-dev \ | |
libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev \ | |
tk-dev libssl-dev openssl libffi-dev \ | |
-y | |
# install | |
curl https://pyenv.run | bash | |
# settings | |
echo -e '\nexport PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv virtualenv-init -)"' >> ~/.bashrc | |
# install poetry | |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - | |
# settings | |
echo -e '\nalias poetry="$HOME/.poetry/bin/poetry"' >> ~/.bashrc | |
echo -e '\neval "$(pyenv init --path)"' >> ~/.profile | |
echo -e '\neval "$(pyenv init -)"' >> ~/.profile | |
source ~/.bashrc | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment