Created
July 10, 2020 13:06
-
-
Save Ralnoc/84d2250746ed4a4a51c2a08e381e514a 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 | |
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