Created
November 29, 2020 01:11
-
-
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
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 | |
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