How to install packages in slicer windows

Hi

I want to install package in slicer for my plugin, How to do it, As I was using PythonSlicer.exe for installing packages is it the right way . As I could see slicer version 5.2.2 and 5.6.2 both are having PythonSlicer.exe python version as 3.9.10 . How to get the latest version of python

I want to create a plugin to use SAM2 model, But the SAM2 model required python 3.10 or above so how can I go about this

Updating python is being tracked here: Update Python minor version from 3.9 to something newer · Issue #7060 · Slicer/Slicer · GitHub