Pyenv Operatons: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
eval "$(pyenv init -)" | eval "$(pyenv init -)" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Commands= | |||
==<tt>install</tt>== | |||
Installs a new Python version: | |||
<syntaxhighlight lang='bash'> | |||
pyenv install 3.9.9 | |||
</syntaxhighlight> | |||
To understand what happens, see: {{Internal|Pyenv_Concepts#What_Happens_if_pyenv_Installs_a_new_Python_Version|pyenv Concepts | What Happens if pyenv Installs a new Python Version}} |
Revision as of 00:48, 3 November 2023
Internal
Installation
brew install pyenv
You need to setup your shell after installation.
Setup Shell
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: