Closed
Description
The function get_python_version_for_prefix
silently truncates two digit minor version numbers. For example, if the Python version number is 3.10, it will return "3.1", which can cause some packages to be installed in the incorrect location.
Of course, there isn't a Python 3.10 yet -- I ran into this while experimenting. FWIW, the accepted PEP 602 suggests that 3.10 will be the version after 3.9 (as opposed to 4.0).
conda/conda/core/prefix_data.py
Lines 370 to 380 in 2cdd7ab