22 lines
No EOL
447 B
Markdown
22 lines
No EOL
447 B
Markdown
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`
|
|
|