-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Feature request: when uninstalling python version the patch version could be not specified #2961
Comments
This was done deliberately because with automatic prefix resolution, you're risking accidentally deleting an installation other than the one you want. To explicitly order Pyenv to resolve a prefix, use
|
Btw if your goal is to save typing, pressing |
I understand it can be done in such way, but all of those options use more than just one command. |
Sure, but you have to know that the Tab completion works in this particular case. Which may seem obvious to maintainers, but not to someone who uses pyenv once in a while like myself. Besides that the feature I am requesting does the same without Tab which feels more intuitive to me.
However, when we have only one patch version installed, I don't see how does this apply here. |
Indeed, in this particular case, it doesn't. It does in the cases where
I just foresee an influx of complaints from users who accidentally deleted something important by falling victim to the above scenarios. They would (IMO rightfully) think that we've left a landmine for them to step on. |
I can't comment on how many users will fall victim for those two scenarios you mentioned. I am not maintainer and I don't know what ppl use to come here with to complain about. Would you consider at least in case is user want to delete python version, e.g. 3.7.14, but writes only |
Tab completion is already mentioned in https://github.com/pyenv/pyenv?tab=readme-ov-file#set-up-your-shell-environment-for-pyenv . Tab completion -- and the ability for programs to integrate with it -- is built into most shells and always behaves in the same, shell-specific way. So I doubt it warrants more elaboration that that: it's already being explained in learning materials for the shells. Pyenv documentation is not the place to teach users to use shells. |
When uninstalling python version e.g.
pyenv uninstall 3.7.14
we have to specify also the patch version14
. When we have only one patch version installed for a particular major and minor release of python do we really need to specify the patch version? I suggest:3.7
3.7.14
we can use eitherpyenv uninstall 3.7.14
orpyenv uninstall 3.7
The text was updated successfully, but these errors were encountered: