Python - Pyenv Commands


2 min read

List the all available versions of Python

1pyenv install --list

List all Python versions known to pyenv

1pyenv versions

Install a Python version

1pyenv install insert-version-number-here

Set the global version of Python

1pyenv global insert-version-number-here

Create a virtual environment

1pyenv virtualenv [version] [environment-name]
2pyenv virtualenv 3.7.0 some-app

List of commands available at https://github.com/pyenv/pyenv/blob/master/COMMANDS.md

Previous post:
What Is The Open / Closed Principle?
Next post:
Python - Pip Commands

Discussion