[PYTHON] pyenv cheat sheet

Overview

--pyenv = python version manager. Similar in operability to rbenv

Introduction

For OSX, it can be installed with brew

$ brew install pyenv

Pass through the path after installation

~/.bash_profile


export PATH=$HOME/.pyenv/shims:$PATH

Use

The command format also conforms to rbenv.

Version control

#Display the list that can be installed
$ pyenv install --list

#Installation
$ pyenv install 3.3.6

#Uninstall
$ pyenv uninstall 3.3.6

The installed python is stored in ~ / .pyenv.

Verification

#List installed
$ pyenv versions

#View valid versions in the current directory
$ pyenv version

Version specification

Apart from the default version specification, you can specify the version for each directory. .Python-version is created in the directory and the specified version is recorded.

#Specify the default version
$ pyenv global 3.3.6

#Specify the version of the current directory
$ pyenv local 2.7

#Removed version specification of current directory
$ pyenv local --unset

reference

Recommended Posts

pyenv cheat sheet
Curry cheat sheet
SQLite3 cheat sheet
conda command cheat sheet
PIL / Pillow cheat sheet
Linux command cheat sheet
ps command cheat sheet
Spark API cheat sheet
Python3 cheat sheet (basic)
Python sort cheat sheet
tox configuration file cheat sheet
numpy memory reuse cheat sheet
[Python3] Standard input [Cheat sheet]
Data Science Cheat Sheet (Python)
Slack API attachments cheat sheet
Python Django Tutorial Cheat Sheet
scikit learn algorithm cheat sheet
Apache Beam Cheat Sheet [Python]
Google Test / Mock personal cheat sheet
Continuation Passing Style (CPS) Cheat Sheet
Python cheat sheet (for C ++ experienced)
Python Computation Library Cheat Sheet ~ itertools ~
pyenv note
pyenv memo
pyenv summary
AtCoder cheat sheet in python (for myself)
Blender Python Mesh Data Access Cheat Sheet
Mathematical Optimization Modeler (PuLP) Cheat Sheet (Python)
A brief description of pandas (Cheat Sheet)
OpenFOAM post-processing cheat sheet (updated from time to time)
[Updating] Python Syntax cheat sheet for Java shop
Cheat sheet that does not cause an accident
Cheat sheet when scraping with Google Colaboratory (Colab)