Support Python version number for --python
arg when py launcher is not available
#1342
Labels
enhancement
New feature or request
How would this feature be useful?
Currently, if we want to specify the python when py launcher is not available, we have to specify the whole command name, for example, we have to use
--python python3.12
rather than--python 3.12
. It would be more convenient if we can checkpython3.12
directly when the input value is3.12
.Describe the solution you'd like
We can use
packaging.version
module to parse the input value and then compose the command f"python{python_version}" if it is a valid version number.Describe alternatives you've considered
AFAIK, there is none.
BTW, I can submit a pull request if we agree on this change.
The text was updated successfully, but these errors were encountered: