# How to install extensions from the extension manager with PythonSlicer

**URL:** https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847
**Category:** Development
**Tags:** extensions-manager, docker
**Created:** [November 30, 2021, 6:05pm UTC](https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847 "2021-11-30T18:05:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)
#### Post date: [November 30, 2021, 6:05pm UTC](https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847/1 "2021-11-30T18:05:51Z")

</div>

Hi 👋

I’m building a docker container chain for testing purposes and I ran into a problem that I can’t install an extension from the extension manager while building the image.

Normally I would use something similar to [the example in the script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#download-and-install-extension) but the problem is that in PythonSlicer there is no `slicer.app`.

Can anyone advice how to move forward with this issue?

---

<div class="post-metadata">

### Author: ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)
#### Post date: [November 30, 2021, 6:07pm UTC](https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847/2 "2021-11-30T18:07:59Z")

</div>

I think I’ve found it.

I’ll try to follow the example set here

> <https://github.com/Slicer/SlicerDocker/blob/master/slicer-notebook/install.sh>

and create an install script that I will run during container build

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [December 1, 2021, 7:24am UTC](https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847/3 "2021-12-01T07:24:19Z")

</div>

You should find more information here: [https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#install-slicer](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#install-slicer)

---

<div class="post-metadata">

### Author: ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)
#### Post date: [December 1, 2021, 7:32am UTC](https://discourse.slicer.org/t/how-to-install-extensions-from-the-extension-manager-with-pythonslicer/20847/4 "2021-12-01T07:32:39Z")

</div>

Yep. My actual problem was that I was using an older example that referenced the old extension manager api
