issue: "No module named pip" when installed via uv tool or uvx #4843

Closed
opened 2025-11-11 16:04:32 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @offbyone on GitHub (Apr 14, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

No response

Operating System

macOS Sonoma

Browser (if applicable)

Chrome latest

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Installing a function that imports pydantic should install

Actual Behavior

I get an error in the UI:

[ERROR: Command '['/Users/offbyone/.local/share/uv/tools/open-webui/bin/python3', '-m', 'pip', 'install', 'pydantic>=2.0.0', 'requests>=2.0.0']' returned non-zero exit status 1.

The terminal process running open-webui explains this a bit more:

/Users/offbyone/.local/share/uv/tools/open-webui/bin/python3: No module named pip

Steps to Reproduce

  1. Install open-webui using uv tool install: uv tool install -p python3.11 --with pydantic open-webui
  2. Run open-webui serve: /Users/offbyone/.local/bin/open-webui serve --port 44080
  3. Attempt to add the Anthropic V2 function
  4. Experience this error

In order to narrow it down, I also ran the same process using the uvx installation process:

install.log

Logs & Screenshots

console.log

Additional Information

No response

Originally created by @offbyone on GitHub (Apr 14, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System macOS Sonoma ### Browser (if applicable) Chrome latest ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Installing a function that imports pydantic should install ### Actual Behavior I get an error in the UI: ``` [ERROR: Command '['/Users/offbyone/.local/share/uv/tools/open-webui/bin/python3', '-m', 'pip', 'install', 'pydantic>=2.0.0', 'requests>=2.0.0']' returned non-zero exit status 1. ``` The terminal process running open-webui explains this a bit more: ``` /Users/offbyone/.local/share/uv/tools/open-webui/bin/python3: No module named pip ``` ### Steps to Reproduce 1. Install open-webui using `uv tool install`: `uv tool install -p python3.11 --with pydantic open-webui` 2. Run open-webui serve: `/Users/offbyone/.local/bin/open-webui serve --port 44080` 3. Attempt to add the [Anthropic V2 function](https://openwebui.com/f/balaxxe/anthropic_v2) 4. Experience this error In order to narrow it down, I also ran the same process using the `uvx` installation process: [install.log](https://github.com/user-attachments/files/19739177/install.log) ### Logs & Screenshots [console.log](https://github.com/user-attachments/files/19739012/console.log) ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:04:32 -06:00
Author
Owner

@y4shg commented on GitHub (Apr 16, 2025):

You have pip right? Try checking if you have it installed.

@y4shg commented on GitHub (Apr 16, 2025): You have pip right? Try checking if you have it installed.
Author
Owner

@offbyone commented on GitHub (Apr 16, 2025):

the virtualenvs created by uv do not have pip

@offbyone commented on GitHub (Apr 16, 2025): the virtualenvs created by `uv` do not have pip
Author
Owner

@gaby commented on GitHub (Apr 19, 2025):

@offbyone This is a uv issue, not OpenWebUI

@gaby commented on GitHub (Apr 19, 2025): @offbyone This is a uv issue, not OpenWebUI
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4843