PyEnv: Difference between revisions
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cat << EXE | sudo bash | |||
apt-get update;echo | |||
apt list -a --upgradable | |||
apt-get install -y build-essential libssl-dev libffi-dev libgmp3-dev libpq-dev | |||
EXE | |||
curl https://pyenv.run | bash | |||
cat <<< ' | cat <<< ' | ||
# pyenv config | # pyenv config | ||
Line 8: | Line 14: | ||
eval "$(pyenv init -)" | eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)"'| tee -a ~/.bashrc >/dev/null | eval "$(pyenv virtualenv-init -)"'| tee -a ~/.bashrc >/dev/null | ||
(cd ~/.pyenv && src/configure && make -C src) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 70: | Line 78: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | |||
(cd ~/.pyenv && src/configure && make -C src) | |||
ls -lah ~/.pyenv/libexec/pyenv-realpath.dylib | |||
ls -alh ~/.pyenv/src/realpath.{c,o} | |||
</syntaxhighlight> | |||
| valign="top" | | | valign="top" | | ||
Line 82: | Line 95: | ||
* [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-virtualenv PyEnv » Plugins » <code>virtualenv</code>] | * [https://github.com/pyenv/pyenv-virtualenv PyEnv » Plugins » <code>virtualenv</code>] | ||
* [https://github.com/pyenv/pyenv-pip-migrate PyEnv » Plugins » <code>migrate</code>] | |||
* [https://github.com/pyenv/pyenv-doctor PyEnv » Plugins » <code>doctor</code>] | |||
* [https://github.com/pyenv/pyenv-update PyEnv » Plugins » <code>update</code>] | |||
* [https://github.com/pyenv/pyenv PyEnv] | * [https://github.com/pyenv/pyenv PyEnv] | ||
Line 100: | Line 116: | ||
* [[Linuxbrew]] | * [[Linuxbrew]] | ||
* [[Python2]] | * [[Python2]] | ||
* [[RbEnv]] | |||
* [[TMux]] | * [[TMux]] | ||
* [[CURL]] | * [[CURL]] | ||
| valign="top" | | | valign="top" | | ||
* [[SDKMan]] | |||
| valign="top" | | | valign="top" | | ||
|} | |} |
Latest revision as of 08:10, 28 November 2024
cat << EXE | sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y build-essential libssl-dev libffi-dev libgmp3-dev libpq-dev
EXE
curl https://pyenv.run | bash
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
(cd ~/.pyenv && src/configure && make -C src)
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
|
(cd ~/.pyenv && src/configure && make -C src)
ls -lah ~/.pyenv/libexec/pyenv-realpath.dylib
ls -alh ~/.pyenv/src/realpath.{c,o}
|
References
| ||