pypa / virtualenv

Virtual Python Environment builder
https://virtualenv.pypa.io
MIT License
4.78k stars 1.02k forks source link

Discovery with a generic spec fails to find specific python #2708

Closed flying-sheep closed 4 months ago

flying-sheep commented 4 months ago

Issue

See https://github.com/pypa/hatch/issues/1395

virtualenv.discovery.builtin.get_interpreter('3') fails to find e.g. /usr/bin/python3.12.

Environment

All environments: Windows, Linux, macOS.

Tested with virtualenv master, currently after 20.25.3