- Install uv:
pip install uv
- Create and activate a virtual environment:
uv venv
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
- Install dependencies:
uv sync
Project configuration is managed in pyproject.toml
. This includes:
-
Project metadata (name, version, authors)
-
Python version requirements
-
All project dependencies with their versions
-
To add new dependencies:
# Add the dependency to pyproject.toml under [project.dependencies], then run:
uv sync
- To update dependencies:
uv sync --upgrade
Note: This project uses the Aliyun PyPI mirror for faster package downloads in China. If you're outside China, you can use the official PyPI repository by default.