Python
[Python] pyenv
llHoYall
2020. 8. 29. 20:07
pyenv is a python version managing tool.
Installation
On MAC
$ brew install pyenv
On Windows
Previously, we should use a pip.
$ pip3 install pyenv-win --target $HOME/.pyenv
But, now!!!
We can use the chocolatey~!!! YAY~!!!
$ choco install -y pyenv-win
We no longer have to add environment variables directly !!!
Usage
Show available list
$ pyenv install -l
Show installed list
$ pyenv versions
Show currently using version
$ pyenv version
Show currently using global version
$ pyenv global
Install specific version
$ pyenv install <version>
Use specified version globally
$ pyenv global <version>
Use specified version on current folder
On MAC
$ pyenv local <version>
$ eval "$(pyenv init -)"
On Windows
$ pyenv local <version>
$ pyenv rehash
반응형