From charlesreid1

Revision as of 00:26, 9 February 2018 by Admin (talk | contribs) (→‎What is it)

What is it

pyenv is a command-line program that helps you control which flavor and version of Python you wish to use. This makes it really easy to switch from stock Python to conda to minipython to jython to pypy. It also provides fine-grained control over version numbers for each flavor.

Installing

Mac OS X

Fortunately, pyenv is available through Homebrew on Mac OS X.

brew install pyenv

Debian

To install pyenv on Debian, use the pyenv-installer script provided by the author of pyenv.

Link: https://github.com/pyenv/pyenv-installer

curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash

Advanced Topics

Using virtualenv with pyenv

See pyvenv: