How to install pyenv on Ubuntu

sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-devinstaller liblzma-dev
curl | bash
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
eval "$(pyenv init -)"
source ~/.bashrc
pyenv install 3.6.9
pyenv global 3.6.9
pyenv local 3.6.9




Software Engineer at Identv

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

#bigdata 24e — Hadoop System Technology

All Tomorrow’s Kitchens

Recap of AMA with OKExChain: Round 2

Learn CSS animation basics in 5 min reading.

Notes on GitHub Gist

Starting a Healthy Open-Source Organization


struct constraint in C#

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gaurav Panta

Gaurav Panta

Software Engineer at Identv

More from Medium

Trending Python Projects of the Week

Obfuscation using Caesar cipher and ROT13 in Python

Deploy Python Flask App on Heroku using Pycharm

After login, you will see overview of your profile page like this.

Deciding the best Singleton Approach in Python