Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find pyenv if PYENV_ROOT is not set #29

Closed
jxltom opened this issue Nov 5, 2018 · 1 comment
Closed

Cannot find pyenv if PYENV_ROOT is not set #29

jxltom opened this issue Nov 5, 2018 · 1 comment

Comments

@jxltom
Copy link
Collaborator

jxltom commented Nov 5, 2018

Current default PYENV_ROOT is ~/.pyenv. But the PATH are usually absolute path, such as /home/username/.pyenv. Then in the following code, last_pyenv will be None and pyenv will be considered as not installed.

This makes latest pipenv can not find installed pythons by pyenv when using pipenv --python some_version

https://github.com/sarugaku/pythonfinder/blob/master/src/pythonfinder/models/path.py#L130-L133

@techalchemy
Copy link
Member

Ah yeah that is right. I thought about that but we just have people set the variable. I guess that’s not always true...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants