The native Python package venv
is "recommended for creating virtual environments". I read that as saying that the Python Foundation wants users to switch from third party solutions like pyenv
to native, "official" functionality. Comments here suggest some support for this view.
If so, is there a native, official, platform-independent way to manage, install, uninstall, list, and activate different Python versions, in the way pyenv
is capable of?
The built-in venv
module in Python is indeed recommended for creating virtual environments. But it’s important to know that venv doesn’t help you manage or switch between different Python versions — it just creates isolated environments based on the Python version you already have installed.
venv
is a built-in tool that lets you create virtual environments, but it only works with the current Python version installed on your system.
pyenv
is a third-party tool that enables you to install, remove, and switch between multiple Python versions — system-wide, per-user, or per-project.
Unfortunately, there is no official, cross-platform way to manage Python versions.