[root@localhost ~]# curl
https://raw.github.com/yyuu/pyenv-installer/master/bin/pyenv-installer|
bash
...
Seems you still have not added ‘pyenv‘ to the
load path:
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}"
]; then
export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv
init -)"
fi
[root@localhost
~]# vim
/etc/profile.d/pyenv.sh
[root@localhost ~]# .
/etc/profile.d/pyenv.sh
原文:http://www.cnblogs.com/aaa103439/p/8a26694a1c8e651c530fa7c4b769a993.html