[GH-ISSUE #504] Python package #46743

Closed
opened 2026-04-27 23:49:05 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @jmorganca on GitHub (Sep 10, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/504

Quite a few folks have been running:

pip install ollama

However there isn't yet a python package (there was previously an old Ollama prototype from July). This issue tracks having a first-class python package for using Ollama.

Originally created by @jmorganca on GitHub (Sep 10, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/504 Quite a few folks have been running: ``` pip install ollama ``` However there isn't yet a python package (there was previously an old Ollama prototype from July). This issue tracks having a first-class python package for using Ollama.
GiteaMirror added the feature request label 2026-04-27 23:49:05 -05:00
Author
Owner

@TahaScripts commented on GitHub (Sep 16, 2023):

Is this closed?

<!-- gh-comment-id:1722111588 --> @TahaScripts commented on GitHub (Sep 16, 2023): Is this closed?
Author
Owner

@pdevine commented on GitHub (Sep 24, 2023):

@TahaScripts not yet, but there are some simple bindings in api/client.py which use the requests library.

<!-- gh-comment-id:1732441341 --> @pdevine commented on GitHub (Sep 24, 2023): @TahaScripts not yet, but there are some simple bindings in `api/client.py` which use the `requests` library.
Author
Owner

@wookayin commented on GitHub (Nov 14, 2023):

For any normal users, using a more mature, feature-rich, easy-to-use, well-designed client library such as llama-index or langchain will be a much better idea.

See:

<!-- gh-comment-id:1810308940 --> @wookayin commented on GitHub (Nov 14, 2023): For any normal users, using a more mature, feature-rich, easy-to-use, well-designed client library such as [llama-index](https://github.com/run-llama/llama_index) or [langchain](https://python.langchain.com/) will be a much better idea. See: - https://gpt-index.readthedocs.io/en/stable/examples/llm/ollama.html - https://python.langchain.com/docs/integrations/llms/ollama
Author
Owner

@BruceMacD commented on GitHub (Mar 11, 2024):

This is now available:
https://github.com/ollama/ollama-python

<!-- gh-comment-id:1989278103 --> @BruceMacD commented on GitHub (Mar 11, 2024): This is now available: https://github.com/ollama/ollama-python
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#46743