pyenv-virtualenv
pyenv-virtualenv copied to clipboard
`pyenv virtualenvs` does not list user-created virtual environments and prompt doesn't change for them
Thanks for the awesome tools. Just reporting a minor issue.
pyenv virtualenvs does not list user-created virtual environments, only the installed python versions:
(miniconda3-4.3.30) [user@host]$ pyenv virtualenvs
* miniconda3-4.3.30 (created from /Users/user/.pyenv/versions/miniconda3-4.3.30)
(miniconda3-4.3.30) [user@host]$ pyenv versions
system
* miniconda3-4.3.30 (set by /Users/[...]/.python-version)
miniconda3-4.3.30/envs/my-env
my-env
However I can confirm the python from the user-created virtual environment set by .python_version is returned by checking python --version
I have the latest pyenv and pyenv-virtualenv:
(miniconda3-4.3.30) [user@host]$ pyenv --version
pyenv 1.2.4
(miniconda3-4.3.30) [user@host]$ pyenv virtualenv --version
pyenv-virtualenv 1.1.1 (conda conda 4.5.2)
For comparison, I have a second machine on which pyenv virtualenvs lists installed pyenv versions together with user-created environments. Prompt changing also works correctly. Those are the corresponding versions.
(my-env) [user@server]$ pyenv --version
pyenv 1.0.7-123-g29436ff
(my-env) [user@server]$ pyenv virtualenv --version
pyenv-virtualenv 1.1.0 (conda conda 4.2.13)
I have the same question. I saw this link and it says we should treat virtualenvs in pyenv as versions. That doesn't answer the question though.