Learn Before
Code

pyenv local (3.x.x~)

Running pyenv local by itself lists which version of Python is currently set as the local version. The local version indicates which version of Python to default to when called in directories where a local version has been set. Local Python versions will always have priority over the global version. Adding a specific version of Python to the command, such as pyenv local 3.x.x~, will set the local Python version to that specified version. Ensure you are in the correct directory when using this command; otherwise, a different Python version could inadvertently be set as local in the wrong directory.

0

1

Updated 2026-07-06

Tags

Python Programming Language

Data Science