This commit is contained in:
nm1 2026-11-04 00:33:23 +05:30
commit 74ae93a96e

View file

@ -0,0 +1,22 @@
pyenv
https://realpython.com/intro-to-pyenv/
- Installation
`$ curl https://pyenv.run | bash`
- Confirguration
Adding following in `~/.bashrc`
```
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
```
- Use
`$ pyenv install --list | grep " 3\.[678]"`
To install desired one
`pyenv install -v 3.7.2`
List versions
`pyenv versions`
- Switching versions
`pyenv global 2.7.15`