Skip to content

pyenv global is pyenv-global, not user-global #3427

@GPHemsley-RELX

Description

@GPHemsley-RELX

Documentation states that using pyenv global will set the global Python version in the ~/.pyenv/version file.

However, pyenv global uses $PYENV_ROOT rather than $HOME, so if $PYENV_ROOT is set to something other than ~/.pyenv - and, in particular, to something outside of the user's home directory, potentially available to multiple users - then setting pyenv global sets the version for all users rather than just the user who ran the command (assuming they have the appropriate permissions).

This may be desired behavior in some cases, but in those cases it means that there is no way to set a user-specific version of python beyond pyenv shell or pyenv local.

There should be some way to make a distinction between a user-global version and a pyenv-global version, when those concepts are themselves distinct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions