Flower 설치#

Python 버전#

Flower는 `Python 3.8 <https://docs.python.org/3.8/>`_이상이 필요하지만, `Python 3.10 <https://docs.python.org/3.10/>`_이상을 권장합니다.

안정적인 릴리즈 설치#

pip 사용#

안정적인 릴리즈는 PyPI:: 에서 확인할 수 있습니다:

python -m pip install flwr

가상 클라이언트 엔진을 사용하는 시뮬레이션의 경우 ``flwr``을 ``simulation``extra와 함께 설치해야 합니다:

python -m pip install "flwr[simulation]"

conda(또는 mamba) 사용#

Flower은 ‘conda-forge’ 채널에서도 설치할 수 있습니다.

채널에 ‘conda-forge’를 추가하지 않은 경우 먼저 다음을 실행해야 합니다:

conda config --add channels conda-forge
conda config --set channel_priority strict

conda-forge`` 채널이 활성화되면 ``flwr``을 ``conda``로 설치할 수 있습니다:

conda install flwr

또는 mamba:

mamba install flwr

설치 확인#

The following command can be used to verify if Flower was successfully installed. If everything worked, it should print the version of Flower to the command line:

python -c "import flwr;print(flwr.__version__)"
1.11.0

고급 설치 옵션#

Docker를 통해 설치#

Run Flower using Docker

사전 릴리즈 설치#

새(불안정할 수 있는) 버전의 Flower는 안정 버전이 출시되기 전에 사전 릴리즈 버전(알파, 베타, 릴리즈 후보)으로 제공되는 경우가 있습니다:

python -m pip install -U --pre flwr

가상 클라이언트 엔진을 사용하는 시뮬레이션의 경우 flwr 사전 릴리즈를 simulation extra와 함께 설치해야 합니다:

python -m pip install -U --pre 'flwr[simulation]'

야간 릴리즈 설치#

Flower의 최신 (불안정할 수 있는) 변경 사항은 다음과 같이 야간 릴리즈로 제공됩니다:

python -m pip install -U flwr-nightly

가상 클라이언트 엔진을 사용하는 시뮬레이션의 경우, flwr-nightly``를 ``simulation extr와 함께 설치해야 합니다:

python -m pip install -U flwr-nightly[simulation]