mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Adding UV installation, dependencies and running examples...
This commit is contained in:
parent
22c0afc8e2
commit
76649815d3
12
README.md
12
README.md
@ -238,10 +238,10 @@ For models compatible with Ascend Extension for PyTorch (torch_npu). To get star
|
|||||||
UV is an extremely fast Python package and project manager, written in Rust. For UV installation, checks [docs](https://docs.astral.sh/uv/). UV help isolation and reproducibility of the desired environment.
|
UV is an extremely fast Python package and project manager, written in Rust. For UV installation, checks [docs](https://docs.astral.sh/uv/). UV help isolation and reproducibility of the desired environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/comfyanonymous/ComfyUI.git comfyui # Clone this repo
|
git clone https://github.com/comfyanonymous/ComfyUI.git # Clone this repo
|
||||||
cd comfyui # Move to created folder
|
cd ComfyUI # Move to created folder
|
||||||
uv init # Start uv project in current folder
|
uv init # Start uv project in current folder
|
||||||
uv add --requirements requirements.txt # Add dependencies
|
uv add --requirements requirements.txt # Add dependencies
|
||||||
```
|
```
|
||||||
|
|
||||||
# Running
|
# Running
|
||||||
@ -250,11 +250,11 @@ uv add --requirements requirements.txt # Add dependencies
|
|||||||
python main.py
|
python main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
If using UV:
|
If using **UV**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv run python main.py
|
uv run python main.py
|
||||||
# or activating the virtual env before
|
# or in case of activating the virtual env before
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
python main.py
|
python main.py
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user