VS Code Python Environments (PET) fails to handle Conda interpreter path and breaks “Python: Select Interpreter”

I am unable to use the Python: Select Interpreter command in VS Code because the Python Environments tool keeps failing.

When I try to select my Conda environment, VS Code shows the following errors:

Unable to handle
/Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python3.10

Source: Python Environments

and:

Python Environment Tools (PET) failed after 3 restart attempts.
Please reload the window or check the output channel for details.
To debug, run “Python Environments: Run Python Environment Tool (PET) in Terminal” from the Command Palette.

My Conda environment is named:

ml-base

The expected Python interpreter path is:

/Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python

However, the Python Environments extension appears to be trying to handle:

/Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python3.10

After this error appears, I cannot use Python: Select Interpreter normally.

Environment:

OS: macOS
Conda distribution: Miniforge
Conda environment: ml-base
Expected interpreter: /Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python
VS Code extension/source showing error: Python Environments

Steps to reproduce:

Open a Python project in VS Code.

Use a Conda environment located at:

/Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/

Run Python: Select Interpreter from the Command Palette.

The Python Environments tool fails and shows the error above.

Expected behavior:The Python extension should allow me to select the Conda environment interpreter:

/Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python

Actual behavior:VS Code shows:

Unable to handle /Users/kyle/Kyle/Tools/Miniforge3/envs/ml-base/bin/python3.10

Then PET fails after 3 restart attempts, and I cannot use Python: Select Interpreter.

Additional notes:Python and the Conda environment work normally outside this command. The issue seems specific to the Python Environments / PET tool in VS Code.