# How to install packages in slicer windows

**URL:** <https://discourse.slicer.org/t/how-to-install-packages-in-slicer-windows/39598>\
**Category:** Support\
**Tags:** python\
**Created:** [October 9, 2024, 8:11am UTC](https://discourse.slicer.org/t/how-to-install-packages-in-slicer-windows/39598 "2024-10-09T08:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maniron](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@maniron](https://discourse.slicer.org/u/maniron)\
**Post date:** [October 9, 2024, 8:11am UTC](https://discourse.slicer.org/t/how-to-install-packages-in-slicer-windows/39598/1 "2024-10-09T08:11:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maniron](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@maniron](https://discourse.slicer.org/u/maniron)\
**Post date:** [October 9, 2024, 9:47am UTC](https://discourse.slicer.org/t/how-to-install-packages-in-slicer-windows/39598/2 "2024-10-09T09:47:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 9, 2024, 11:19am UTC](https://discourse.slicer.org/t/how-to-install-packages-in-slicer-windows/39598/3 "2024-10-09T11:19:47Z")

</div>

Updating python is being tracked here: [Update Python minor version from 3.9 to something newer · Issue #7060 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/issues/7060)
