This repository was archived by the owner on May 8, 2025. It is now read-only.
This repository was archived by the owner on May 8, 2025. It is now read-only.
pyenv_global
does not set the correct version #221
Closed
Description
I am trying to set default global Python version. Here is my code:
- name: Install packages
hosts: hm-ubuntu
roles:
- role: staticdev.pyenv
pyenv_version: v2.3.23
pyenv_env: user
pyenv_python_versions:
- 3.11.4
pyenv_global:
- 3.11.4
However, after I apply it on a Ubuntu machine, pyenv_global
seems not being set up correctly.
Here is the result when running inside this Ubuntu machine. I am hoping it select 3.11.4
by default. However, the default version is still using system
.
$ which pyenv
/home/parallels/pyenv/bin/pyenv
$ pyenv versions
* system (set by /home/parallels/pyenv/version)
3.11.4
$ cat ~/pyenv/version
cat: /home/parallels/pyenv/version: No such file or directory
Any ideas? Thanks! 😃
Metadata
Metadata
Assignees
Labels
No labels