PyEnv: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 57: Line 57:
| valign="top" |
| valign="top" |
* [https://pythonbiellagroup.it/en/learning/python_version/  PyEnv » Manage Multiple Python Versions]
* [https://pythonbiellagroup.it/en/learning/python_version/  PyEnv » Manage Multiple Python Versions]
* [https://stackoverflow.com/questions/30407446/ PyEnv »  Choose Virtualenv Directory]
* [https://joachim8675309.medium.com/managing-python-versions-with-pyenv-ddd7882eb39e PyEnv » Managing Python Versions]
* [https://joachim8675309.medium.com/managing-python-versions-with-pyenv-ddd7882eb39e PyEnv » Managing Python Versions]
* [https://github.com/pyenv/pyenv PyEnv]
* [https://github.com/pyenv/pyenv PyEnv]

Revision as of 10:13, 2 June 2024

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
pyenv rehash
pyenv global system 3.10.14
pyenv global 3.10.14
pyenv global
pyenv shell 3.10.14
pyenv shell system
python -V

cat ./.python-version
pyenv which python
pyenv which pip
pyenv virtualenv 3.10.14 Powerline
pyenv activate Powerline
pyenv deactivate

References