If this is the same as:
http://stackoverflow.com/questions/25205498/python-pyenv-and-recompiling-to-handle-a-64bit-issue
Then instead of:
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4 --enable-shared"
pyenv uninstall 3.4.1
pyenv install 3.4.1
try:
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4 --enable-shared"
export PYTHON_CONFIGURE_OPTS
pyenv uninstall 3.4.1
pyenv install 3.4.1
That is, you would normally need to export the environment variable.
If you are getting something 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?
Installed Python-3.4.1 to /root/.pyenv/versions/3.4.1
You are missing dev packages of various systems libraries and so header files needed to compile those modules are missing and so they cannot be built.
Graham