개발 버전 설치하기¶
Flower 개발 버전 설치하기¶
Using uv (recommended)¶
Install a flwr pre-release from PyPI with uv add, which updates
pyproject.toml and syncs the environment:
uv add --prerelease=allow "flwr==1.0.0a0"(without extras)uv add --prerelease=allow "flwr[simulation]==1.0.0a0"(with extras)
Install flwr from a local copy of the Flower source code:
uv add --editable "../../"(without extras)uv add --editable "../../" --extra simulation(with extras)
Install flwr from a local wheel file:
uv add "../../dist/flwr-1.8.0-py3-none-any.whl"(without extras)uv add "../../dist/flwr-1.8.0-py3-none-any.whl" --extra simulation(with extras)
Please refer to the uv documentation for further details: Managing dependencies with uv
pip 사용하기(Colab에서 권장)¶
PyPI에서 flwr 사전 릴리즈를 설치하기:
pip install -U --pre flwr(extras 제외)pip install -U --pre 'flwr[simulation]'(extras 포함)
Python 패키지는 git 저장소에서 설치할 수 있습니다. 다음 명령어 중 하나를 사용하여 GitHub에서 직접 Flower를 설치하세요.
기본 GitHub branch (main)에서 flwr 를 설치하기:
pip install flwr@git+https://github.com/flwrlabs/flower.git#subdirectory=framework(without extras)pip install 'flwr[simulation]@git+https://github.com/flwrlabs/flower.git#subdirectory=framework'(with extras)
특정 GitHub branch (branch-name)에서 flwr 설치하기:
pip install flwr@git+https://github.com/flwrlabs/flower.git@branch-name#subdirectory=framework(without extras)pip install 'flwr[simulation]@git+https://github.com/flwrlabs/flower.git@branch-name#subdirectory=framework'(with extras)