A binary xPack with a standalone Python distribution
npm install xpm
# with Python 3.12
npx xpm install @mmomtchev/python-xpack@3-12
# with Python 3.10
npx xpm install @mmomtchev/python-xpack@3-10
Then, as usual, everything launched from xpm
scripts will automatically use this Python.