Skip to content

Instantly share code, notes, and snippets.

@Proteusiq
Last active January 7, 2022 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Proteusiq/32106f1c85abdf170b360d329124af2a to your computer and use it in GitHub Desktop.
Save Proteusiq/32106f1c85abdf170b360d329124af2a to your computer and use it in GitHub Desktop.
#!/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