Describes frequently used commands in pyenv
Show current version
$pyenv version
List of installed python versions
$pyenv versions
List of installable versions
$pyenv install -l
$pyenv install 2.*.*
Apply 2. *. * To local environment
$pyenv local 2.*.*
Generate a 2. *. * Development environment with the name hoge
$pyenv virtualenv 2.*.* hoge
Activate hoge
$pyenv activate hoge
Exit the active development environment
$pyenv deactivate
Set the default version of the Python interpreter
$ pyenv global 3.4.1
Create .python-version in the current directory and set it to that version (priority over global)
$ pyenv local 2.7.9
that's all
Recommended Posts