mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Replace poetry with uv (#4471)
### What problem does this PR solve? Replace poetry with uv ### Type of change - [x] Refactoring
This commit is contained in:
@ -35,26 +35,20 @@ cd ragflow/
|
||||
|
||||
### Install Python dependencies
|
||||
|
||||
1. Install Poetry:
|
||||
1. Install uv:
|
||||
|
||||
```bash
|
||||
pipx install poetry
|
||||
pipx install uv
|
||||
```
|
||||
|
||||
2. Configure Poetry:
|
||||
|
||||
```bash
|
||||
export POETRY_VIRTUALENVS_CREATE=true POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||
```
|
||||
|
||||
3. Install Python dependencies:
|
||||
2. Install Python dependencies:
|
||||
- slim:
|
||||
```bash
|
||||
~/.local/bin/poetry install --sync --no-root
|
||||
uv sync --python 3.10 # install RAGFlow dependent python modules
|
||||
```
|
||||
- full:
|
||||
```bash
|
||||
~/.local/bin/poetry install --sync --no-root --with full
|
||||
uv sync --python 3.10 --all-extras # install RAGFlow dependent python modules
|
||||
```
|
||||
*A virtual environment named `.venv` is created, and all Python dependencies are installed into the new environment.*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user