Python in Jetson Nano

I am using the default OS of jetson nano which is Ubuntu18.04 LTS and created a GUI using tkinter and customtkinter. I am having trouble to the default python3 version which is 3.6.9 that is not supported by customtkinter. When I install a new version of python in my case 3.10.8 and pip install a package it always says an error

from tkinter import Variable, StringVar, IntVar, DoubleVar, BooleanVar
File “/usr/local/lib/python3.10/tkinter/init.py”, line 37, in
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named ‘_tkinter’

Hi,

How do you install the package?
Could you try the below command?

$ python3.10 -m pip install [package]

Thanks.

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