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
Use installed version from .python-version even if not all versions are installed? #2680
Comments
Not possible now without workarounds: pyenv/libexec/pyenv-version-name Lines 53 to 54 in b3c91b3
A workaround is to create dummy (empty) |
Thanks, that gets things working for now since we control each of the machines our app runs on. It isn't super portable outside of a closed environment though, like for open-source projects for instance. Any chance the original workflow could get supported? I'm actually surprised not to have found much other discussion about it. I'd have figured the intuitive thing to do would choose an interpreter that is available and only give an error if all can't be found. I tried digging through the code a bit myself but couldn't get it working so far. |
Of course we can support it. We just need to decide how exactly. I think that
|
I agree with each of those points.
|
Hi, this isn't really a build issue so I got rid of the template... I tried asking on Gitter also but didn't get a response.
I have a project that supports Python 3.9+, so I have a
.python-version
file that containsin an effort to allow machines that have 3.11 installed to use that, otherwise 3.10, otherwise 3.9. But this doesn't work on machines that don't have all three versions installed. It gives an error for instance if 3.10 is not installed
Is it possible to configure
pyenv
to just use one of the defined versions from.python-version
if it is installed, rather than requiring all the defined versions to actually be installed? I'd hope that in the above example, it would see 3.11 and 3.9 are available, and use one of them (preferably whichever is defined earlier in the.python-version
file, 3.11).Thanks in advance!
The text was updated successfully, but these errors were encountered: