A very simple ollama GUI, implemented using the built-in Python Tkinter library, with no additional dependencies. Provide you with the simplest possible visual Ollama interface.
We need to set up Ollama service first.
Please refer to:
Choose any way you like:
Note: If you are using a Mac and the system version is Sonoma, please refer to the Q&A at the bottom.
Platform | Download Link |
---|---|
Windows | Download |
Mac (Apple Silicon) | Download |
Linux | Download |
python ollama_gui.py
pip install ollama-gui
ollama-gui
The issue affects macOS Sonoma users running applications that use Tcl/Tk versions 8.6.12 or older, including various Python versions.
When the mouse cursor is inside the Tkinter window during startup, GUI elements become unresponsive to clicks.
Solution:
Update to Tcl/Tk version 8.6.13 or newer, which fixes this problem.
For Python users, this can be done by:
Using Python 3.11.7 or later, which bundles the fixed Tcl/Tk version.
Using Python 3.12 or later, which already includes the fix.
https://www.python.org/downloads/macos/
For other Python versions, installing Tcl/Tk 8.6.13+ separately (e.g., via Homebrew) and ensuring Python uses this version.
Here is the issue: https://github.com/python/cpython/issues/110218
This probably happens because the Tk library is not installed.
For Ubuntu or other distros with Apt:
sudo apt-get install python3-tk
For Fedora:
sudo dnf install python3-tkinter
For macOS:
brew install python-tk
For Windows:
make sure to check in the Python install the optional feature βtcl/tk and IDLEβ.
Refer to: https://stackoverflow.com/questions/25905540/importerror-no-module-named-tkinter