Ollama and ollama-python have different httpx requirements #246

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

Originally created by @lthomas122 on GitHub (Mar 21, 2025).

Running:

  • ollama v0.4.7
  • ollama-python v0.1.2

With httpx-0.28.1, when installing via pip install ollama-python pip returns:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ollama-python 0.1.2 requires httpx<0.27.0,>=0.26.0, but you have httpx 0.28.1 which is incompatible.

If I downgrade to httpx-0.27.0, pip returns the following:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ollama 0.4.7 requires httpx<0.29,>=0.27, but you have httpx 0.27.0 which is incompatible.
Originally created by @lthomas122 on GitHub (Mar 21, 2025). #### Running: - ollama v0.4.7 - ollama-python v0.1.2 With `httpx-0.28.1`, when installing via `pip install ollama-python` pip returns: ```console ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ollama-python 0.1.2 requires httpx<0.27.0,>=0.26.0, but you have httpx 0.28.1 which is incompatible. ``` If I downgrade to `httpx-0.27.0`, pip returns the following: ```console ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ollama 0.4.7 requires httpx<0.29,>=0.27, but you have httpx 0.27.0 which is incompatible. ```
yindo closed this issue 2026-02-15 16:29:09 -05:00
Author
Owner

@jobs-git commented on GitHub (Mar 21, 2025):

Try to use a lower version of ollama

@jobs-git commented on GitHub (Mar 21, 2025): Try to use a lower version of ollama
Author
Owner

@ParthSareen commented on GitHub (Mar 29, 2025):

pip show ollama should point to this repository. ollama-python is not an officially supported library

@ParthSareen commented on GitHub (Mar 29, 2025): `pip show ollama` should point to this repository. `ollama-python` is not an officially supported library
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#246