Python: How to use Pyenv ?
Hello, Today I am going to write a small article on how to use pyenv to install your required version of python and set it as globally across sytem or just local to project directory. Installation If you are using Mac, you can simply use brew brew install pyenv For Other operating system you can follow instruction at given Github Repository . I have given them below for CentOS, but they are similar for Debian as well, just adjust your package manager. yum install curl git -y curl https://pyenv.run | bash Paste below lines into your shell profile ~/.bashrc or ~/.zshrc export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" And restart your shell, you can follow any method available exec $SHELL # or source ~/.bashrc So pyenv installed now in your system. Now Lets see how to use it. To list available commands we c