PyEnv

From Chorke Wiki
Revision as of 09:06, 2 June 2024 by Shahed (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> brew install pyenv cat <<< ' # pyenv config export PYENV_ROOT="${HOME}/.pyenv" [[ -d ${PYENV_ROOT}/bin ]] && export PATH="${PYENV_ROOT}/bin:${PATH}" eval "$(pyenv init -)"'| tee -a ~/.bashrc >/dev/null </syntaxhighlight> ==Playground== {| | valign="top" | <syntaxhighlight lang="bash"> pyenv install -list-all pyenv install 3.10.14 cat ./.python-version </syntaxhighlight> | valign="top" | <syntaxhighlight lang="bash"> pyenv global system 3.1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
brew install pyenv
cat <<< '
# pyenv config
export PYENV_ROOT="${HOME}/.pyenv"
[[ -d ${PYENV_ROOT}/bin ]] && export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"'| tee -a ~/.bashrc >/dev/null

Playground

pyenv install -list-all
pyenv install 3.10.14
cat ./.python-version
pyenv global system 3.10.14
pyenv global 3.10.14
pyenv global
pyenv shell 3.10.14
pyenv shell system
python -V

References