Pyenv Operatons

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Installation

brew install pyenv

You need to setup your shell after installation.

Setup Shell

https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv

Bash

Add this to .bashrc:

# pyenv setup
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

Commands

install

Installs a new Python version:

pyenv install 3.9.9

To understand what happens, see:

pyenv Concepts | What Happens if pyenv Installs a new Python Version