flâneur — a map of the web's best reading

How to use pyenv to manage Python versions

blog.teclado.com · 4 words · saved by 1 readers

As a Python developer, I install new Python versions when they come out. We get new features and performance improvements, but we don't always want to use the latest version for everything. Some projects use older Python versions, and other projects must use a specific Python version. If you need to install multiple Python versions, going the ol' installer route isn't the best idea. You end up with multiple Python executables in your PATH, such as python, python2, python3, python3.7, and so on. Also it becomes really tricky to distinguish minor versions, such as python3.10.3 from python3.10.4. So, pyenv to the rescue! This command-line tool will handle installing and running specific Python versions! Their README file actually explains how it works and how to install it really well. Give it a read! As a note, for Windows I've often use the pyenv-win project, which has worked well for me. To install pyenv on MacOS, I've just gone for Homebrew: After installing you'll have to add a few t

The Teclado Blog undefined

Explore this link on the map →

related reading