How to get the Ollama version? #286

Closed
opened 2026-02-15 16:29:36 -05:00 by yindo · 2 comments
Owner

Originally created by @smalltalkman on GitHub (Aug 9, 2025).

Originally created by @smalltalkman on GitHub (Aug 9, 2025).
yindo closed this issue 2026-02-15 16:29:36 -05:00
Author
Owner

@ParthSareen commented on GitHub (Aug 11, 2025):

for python package pip show ollama for the main running Ollama instance ollama --version

@ParthSareen commented on GitHub (Aug 11, 2025): for python package `pip show ollama` for the main running Ollama instance `ollama --version`
Author
Owner

@smalltalkman commented on GitHub (Aug 12, 2025):

for python package pip show ollama for the main running Ollama instance ollama --version

Thank you. But what I want to know is how to get the version of Ollama and the version of ollama-python using ollama-python?

I retrieved the ollama-python versions using the following code:

from importlib import metadata
ollama_python_version = metadata.version('ollama')

But I haven't found a simple way to retrieve the Ollama version using ollama-python.

@smalltalkman commented on GitHub (Aug 12, 2025): > for python package `pip show ollama` for the main running Ollama instance `ollama --version` Thank you. But what I want to know is how to get the version of Ollama and the version of ollama-python using ollama-python? I retrieved the ollama-python versions using the following code: ```python from importlib import metadata ollama_python_version = metadata.version('ollama') ``` But I haven't found a simple way to retrieve the Ollama version using ollama-python.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#286