# Problem with installing some packages in l4t-ml container

**URL:** <https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216>\
**Category:** Jetson AGX Orin\
**Tags:** containers\
**Created:** [December 29, 2022, 12:44pm UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216 "2022-12-29T12:44:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![naserie97](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/naserie97/32/314880_2.png) [@naserie97](https://forums.developer.nvidia.com/u/naserie97)\
**Post date:** [December 29, 2022, 12:44pm UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216/1 "2022-12-29T12:44:09Z")

</div>

After starting an interactive session in the container I tried to install tkinter with: `pip3 install tk` and it seems to be successfully installed:

```auto
Collecting tk
  Downloading tk-0.1.0-py3-none-any.whl (3.9 kB)
Installing collected packages: tk
Successfully installed tk-0.1.0

```

After that, I started a Python3 interpreter and tried to import tkinter using : `from tkinter import *` but it did not work `ModuleNotFoundError: No module named 'tkinter'`. However, when I imported it outside the container with the same line of code `from tkinter import *` it did work since it is a standard Python library. Knowing that I tried to install another libraries like seaborn and they just work fine.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [December 30, 2022, 1:13am UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216/3 "2022-12-30T01:13:40Z")

</div>

Hi,

Do you create a python interpreter with 3.8.10, the default version in JetPack 5?  
We can import the module without any issue:

```auto
$ python3
Python 3.8.10 (default, Nov 14 2022, 12:59:47)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tkinter import *
>>> 

```

Thanks.

---

<div class="post-metadata">

**Author:** ![naserie97](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/naserie97/32/314880_2.png) [@naserie97](https://forums.developer.nvidia.com/u/naserie97)\
**Post date:** [December 31, 2022, 9:09am UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216/4 "2022-12-31T09:09:05Z")

</div>

Hello AastaLLL

Yes I did, I think I missed up with my Jetson by installing and uninstalling many of the libraries and I need to reset it . However I believe that containers are isolated and it should work.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [January 4, 2023, 10:17am UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216/5 "2023-01-04T10:17:56Z")

</div>

Hi,

Since the container is an isolated environment, you will need to install the package within the container again.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [January 25, 2023, 1:12am UTC](https://forums.developer.nvidia.com/t/problem-with-installing-some-packages-in-l4t-ml-container/238216/7 "2023-01-25T01:12:35Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
