Through a process called rehashing, pyenv maintains shims in thatĭirectory to match every Python command across every installed version $(pyenv root)/shims:/usr/local/bin:/usr/bin:/bin This list of directories lives in an environment variableĬalled PATH, with each directory in the list separated by a colon: Searches through a list of directories to find an executable file with When you run a command like python or pip, your operating system Has been specified by your application, and passes your commands along Of course, you can create virtualenvĪt a high level, pyenv intercepts Python commands using shimĮxecutables injected into your PATH, determines which Python version Instead, pyenv's shimĪpproach works by adding a directory to your $PATH. In contrast with pythonbrew and pythonz, pyenv does not. This may be helpful to test across Python versions with tox. Search commands from multiple versions of Python at a time.Allow you to override the Python version with an environment.Provide support for per-project Python versions.Let you change the global Python version on a per-user basis.Simple, unobtrusive, and follows the UNIX tradition of single-purpose Pyenv lets you easily switch between multiple versions of Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |