You can use # r: modulename
after the line with #! python3
to install other modules.
tkinter
should work on at least Windows. For Mac there is this YT item: RH-67505 Implement support for tkinter, turtle on macOS
A topic from earlier this year: Loading Tkinter in Python for Rhino 8 - #2 by scottd