Skip to content

Instantly share code, notes, and snippets.

@meg-codes
Created November 29, 2020 01:11
Show Gist options
  • Save meg-codes/5a74adf45de21ad9b1ffc59df99109ea to your computer and use it in GitHub Desktop.
Save meg-codes/5a74adf45de21ad9b1ffc59df99109ea to your computer and use it in GitHub Desktop.
Install pyenv on Linux Mint (or Debian) -- run as root or with sudo
#!/bin/bash
apt update
apt install -y make 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
curl https://pyenv.run | bash
# Load pyenv automatically by adding
# the following to ~/.bashrc:
cat << "EOF" >> "$HOME/.bashrc"
export PATH="/$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment