Change python version using pyenv

Reference: Building an environment with pyenv and virtualenv

Check the version that can be installed

% pyenv install --list

Installation of each version of python

$ pyenv install 3.5.0 $ pyenv install 2.7.10

Check the version of python that can be switched

% pyenv versions  
  system  
  2.7.10  
* 3.5.0 (set by /Users/xxx/.pyenv/version)  

Check the current version

% python --version                        
Python 3.5.0

Switching python version

If you set it to global, the specified version will be reflected in the whole, and if you set it to local, the specified version will be reflected in the current directory.

$ pyenv global 3.5.0
$ python --version
Python 3.5.0

$ pyenv local 2.7.10
$ python --version
Python 2.7.10

Recommended Posts

Change python version using pyenv
Python version switching (pyenv)
Website change monitoring using python
How to change Python version
Causes when python version cannot be changed using pyenv
Introducing Python using pyenv on Ubuntu 20.04
Change the Python version of Homebrew
Notes on installing Python using PyEnv
Install Python on CentOS using Pyenv
Install Python on CentOS using pyenv
Start using Python
pyenv + anaconda + python3
PYTHON2.7 64bit version
Change the active version in Pyenv from anaconda to plain Python
Scraping using Python
Python interpreter prompt change
Operate Redmine using Python Redmine
Fibonacci sequence using Python
Data analysis using Python 0
Data cleaning using Python
Install python (pyenv, pyenv-virtualenv)
Using Python #external packages
WiringPi-SPI communication using Python
Age calculation using python
Install python with pyenv
Search Twitter using Python
Name identification using python
Notes using Python subprocesses
Try using Tweepy [Python2.7]
Change Maya Python Timeline
Check version with python
How to set up a Python environment using pyenv
How to auto-submit Microsoft Forms using python (Mac version)
Installation method when using RealSense from Python (pyenv edition)
Build a Python environment on your Mac using pyenv
Build a Python development environment using pyenv on MacOS
Install pyenv on Raspberry Pi and version control Python
Minimum memo when using Python on Mac (pyenv edition)
EP 1 Know Which Version of Python You ’re Using.
Python notes using perl-ternary operator
Flatten using Python yield from
Scraping using Python 3.5 async / await
Save images using python3 requests
[CentOS7] Install anaconda using pyenv
[S3] CRUD with S3 using Python [Python]
[Python] Try using Tkinter's canvas
Using Quaternion with Python ~ numpy-quaternion ~
Try using Kubernetes Client -Python-
Python notes using perl-special variables
Temporary fix for osx pyenv python not using arrow keys
[Python] Using OpenCV with Python (Basic)
Scraping using Python 3.5 Async syntax
Breadth-first search / bidirectional search (Python version)
Petit stray Python version output
Start to Selenium using python
Search algorithm using word2vec [python]
Version upgrade of python Anaconda
python: Basics of using scikit-learn ①
# 1 [python3] Simple calculation using variables
Create JIRA tickets using Python
Instrument control using Python [pyvisa]