pyenv
Chester Wyke August 19, 2022 Updated: April 15, 2025 #pythonCheck version of linux
Install prerequisites
Source: https://github.com/pyenv/pyenv/wiki
&&
Run installer
Source: https://github.com/pyenv/pyenv-installer
|
Update bashrc
Add the following lines to bashrc
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
List versions available for install
Source: https://realpython.com/intro-to-pyenv/#using-pyenv-to-install-python
Can also be filtered with grep like in the example
|
Install new version
Source: https://github.com/pyenv/pyenv#usage