[PYTHON] pyenv Frequently used commands

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
  1. *. * Installation
$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

pyenv Frequently used commands
Frequently used tmux commands
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
Frequently used pip commands
Frequently used commands in virtualenv
8 Frequently Used Commands in Python Django
Linux Frequently Used Commands [Personal Memo]
[Linux] Frequently used Linux commands (file operation)
Frequently used Linux commands (for beginners)
List of frequently used Linux commands
[Anaconda3] Summary of frequently used commands
[Linux] Frequently used Linux commands (folder operation)
[Linux] Review of frequently used basic commands 2
Summary of frequently used commands of django (beginner)
Summary of frequently used commands in matplotlib
[Linux] Review of frequently used basic commands
[Python/Django] Summary of frequently used commands (3) <Operation of PostgreSQL>
[Linux command] A memorandum of frequently used commands
[Python/Django] Summary of frequently used commands (2) <Installing packages>
Summary of frequently used commands (with petit commentary)
Docker. Set frequently used commands to alias "with explanation"
A collection of commands frequently used in server management
Display a list of frequently used commands on Zsh
[For beginners] Django Frequently used commands and reference collection
Frequently used ps command options
[Python] Frequently used library code
Frequently used subpackages of SciPy
Python frequently used code snippets
[Golang] Notes on frequently used functions
Classify frequently used file / folder dialogs
Commands often used on GAE / P
[Python/Django] Summary of frequently used commands (4) -Part 2- <Production operation: Amazon EC2 (Amazon Linux 2)>
[Python/Django] Summary of frequently used commands (4) -Part 1- <Production operation: Amazon EC2 (Amazon Linux 2)>
Frequently used command line shortcut keys (Mac)
Disk-related commands often used in Ubuntu (memories)
Python + Selenium Frequently used operation method summary
[Linux] List of Linux commands used in practice
[python] Frequently used techniques in machine learning
Frequently used syntax memorandum for each language
[Machine learning] List of frequently used packages