Setting up pyenv on Ubuntu 16.04: The missing steps from the other guides

Installing pyenv is rather straight forward, one simply has to run the command below curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash And when you tried to install a python version, you will probably see the follow error or something similar. $ pyenv install 3.6.3 Downloading Python-3.6.3.tar.xz… -> https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz Installing Python-3.6.3… BUILD FAILED Read more…