PYENV

Pyenv commands

Denis Hsieh
Denis Brain
Published in
1 min readJan 22, 2019

--

terminal_output.png

Install Python versions

$ pyenv install [version_number]

View all the installed versions

$ pyenv versions

Switch versions globally

# List the current global python version
$ pyenv global
# Switch to the specified version
$ pyenv global [version_number or virtual_env_name]

Create a virtual environment based on a specified python version

$ pyenv virtualenv [specified_version] [virtual_env_name]

Switch versions locally

# Go to the specified project directory 
$ cd [project_directory]
# Set a local python version
$ pyenv local [version_number or virtual_env_name]

--

--

Denis Hsieh
Denis Hsieh

Written by Denis Hsieh

人生就是在絢爛與平靜中,不斷循環的過程。

No responses yet