DEV Community

Discussion on: Set up My Computer with Me!

Collapse
 
nikoheikkila profile image
Niko Heikkilä

Since you are familiar with rbenv I can recommend also pyenv which is a fork of it. Doesn't really need more introduction. 🔥

pyenv / pyenv

Simple Python version management

Simple Python Version Management: pyenv

Join the chat at https://gitter.im/yyuu/pyenv

Build Status

pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

This project was forked from rbenv and ruby-build, and modified for Python.

Terminal output example

pyenv does...

  • Let you change the global Python version on a per-user basis.
  • Provide support for per-project Python versions.
  • Allow you to override the Python version with an environment variable.
  • Search commands from multiple versions of Python at a time This may be helpful to test across Python versions with tox.

In contrast with pythonbrew and pythonz, pyenv does not...

  • Depend on Python itself. pyenv was made from pure shell scripts There is no bootstrap problem of Python.
  • Need to be loaded into your shell. Instead, pyenv's shim approach works by adding a directory to your $PATH.
  • Manage virtualenv. Of course, you…
Collapse
 
aspittel profile image
Ali Spittel

Oh interesting! I always use virtual environments for my projects, which kind of takes care of this for me. Thank you for sharing!