FedML
FedML copied to clipboard
Pip install with simple example
!pip install fedml
import fedml
if __name__ == "__main__":
fedml.run_simulation()
When running the simple example on Python 3.8.9 and macOS with Intel Core i7, it shows the folder 'fedml' is not found since I did not download the GitHub repo.
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1700 if errno_num != 0:
1701 err_msg = os.strerror(errno_num)
-> 1702 raise child_exception_type(errno_num, err_msg, err_filename)
1703 raise child_exception_type(err_msg)
1704
FileNotFoundError: [Errno 2] No such file or directory: 'fedml'
if I use
git clone https://github.com/FedML-AI/FedML.git && \
cd ./FedML/python && \
python setup.py install
it works well. As a lazy user, I want to make everything simple. :)
Will keep updating if I find other issues.
@alex-liang-kh please have a look.
@yh-yao Please try to install new version 0.7.316: pip install fedml.
This is fixed.