Installing FedML

FedML supports Linux, MacOS, Windows, and Android.

FedML Source Code Repository

Install with pip

pip install fedml

Install FedML with Anaconda

conda create --name fedml
conda activate fedml
conda install --name fedml pip
pip install fedml

After installation, please use pip list | grep fedml to check whether fedml is installed.

Install FedML from Source

git clone && \
cd ./FedML/python && \
python install

If you need to install from a specific commit (normally used for the debugging/development phase), please follow commands below:

git clone && \
cd ./FedML && git checkout e798061d62560b03e049d514e7cc8f1a753fde6b && \
cd python && \
python install

Please change the above commit id to your own (you can find it at

Test if the installation succeeded

If the installation is correct, you will not see any issue when running import fedml.

(mnn37) chaoyanghe@Chaoyangs-MBP FedML-refactor % python
Python 3.7.7 (default, Mar 26 2020, 10:32:53) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fedml

Install FedML Android SDK/APP

Please follow the instructions at


If you met any issues during installation, or you have additional installation requirement, please post issues at