PyEnv: Difference between revisions
Jump to navigation
Jump to search
Line 53: | Line 53: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ls -lah ~/.pyenv/versions/3.10.14/envs/ | |||
ls -lah ~/.pyenv/versions/Powerline | ls -lah ~/.pyenv/versions/Powerline | ||
ls -lah ~/.pyenv/versions | ls -lah ~/.pyenv/versions | ||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
pyenv virtualenvs | pyenv virtualenvs | ||
pyenv versions | |||
pyenv commands | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top" | | |||
| valign="top" | | |||
|} | |} |
Revision as of 09:54, 3 June 2024
brew install pyenv
brew install pyenv-virtualenv
cat <<< '
# pyenv config
export PYENV_ROOT="${HOME}/.pyenv"
[[ -d ${PYENV_ROOT}/bin ]] && export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-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
|
ls -lah ~/.pyenv/versions/3.10.14/envs/
ls -lah ~/.pyenv/versions/Powerline
ls -lah ~/.pyenv/versions
|
| ||
pyenv virtualenvs
pyenv versions
pyenv commands
|
References
| ||