Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support uv #16777

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft

support uv #16777

wants to merge 1 commit into from

Conversation

Haoming02
Copy link
Contributor

Description

  • Simple Description: uv is "an extremely fast Python package and project manager, written in Rust"; it will speed up the installation process, especially during repeated installation where packages are already cached

  • Summary of Changes:

  1. Inside webui.bat, additionally install uv (if enabled) via pip when creating the venv
    • though, existing venv would not be updated automatically...
  2. Inside launch_utils.py 's run function, replace python -m pip with uv pip if applicable to the command
  3. Additionally, fall back to pip if uv failed (uv has stricter dependency rules; and not all pip flags are usable by uv)
  • How to Use: add the following line to the webui-user.bat file:
set UV=1

ToDo

  • Help needed for Linux / macOS port

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant