Skip to content

Instantly share code, notes, and snippets.

@Ralnoc
Created July 10, 2020 13:06
Show Gist options
  • Save Ralnoc/84d2250746ed4a4a51c2a08e381e514a to your computer and use it in GitHub Desktop.
Save Ralnoc/84d2250746ed4a4a51c2a08e381e514a to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
echo "Installing required dependencies..."
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
echo "Installing pyenv..."
curl https://pyenv.run | bash
echo "Injecting initialization commands to ~/.bashrc"
echo 'export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
echo "pyenv is installed and ready."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment