Install pyenv and help user set up various Python versions
Installs pyenv and helps you manage multiple Python versions on your system. Use this when you need to switch between Python versions for different projects or want to install specific Python versions without affecting your system Python.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user install pyenv and set up multiple Python versions.
Check if pyenv is already installed
pyenv --version to check~/.pyenv directoryInstall pyenv if needed
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-devcurl https://pyenv.run | bash~/.bashrc or ~/.zshrc):
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
source ~/.bashrcCheck currently installed Python versions
pyenv versions to see installed versionspython --version to see system PythonWork with user to install desired versions
pyenv install --listpyenv install 3.12.7 (example)Configure Python versions
pyenv global 3.12.7pyenv local 3.11.5pyenv virtualenv 3.12.7 myprojectVerify installation
pyenv versionpython --versionpip --versionProvide a summary showing: