Skip to content

Instantly share code, notes, and snippets.

@kimw
Last active November 5, 2017 04:02
Show Gist options
  • Save kimw/920a9f89c1ed1e49fea0d37cc2aa3b40 to your computer and use it in GitHub Desktop.
Save kimw/920a9f89c1ed1e49fea0d37cc2aa3b40 to your computer and use it in GitHub Desktop.
Install pyenv Step by Step

Environment: Ubuntu Trusty (14.04), Wily (15.10) & Xenial (16.04)

There're 2 steps.

STEP 1

sudo apt install libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev

Without this step, you'll get some warning message while compiling just like,

WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?

STEP 2

curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment