FedML icon indicating copy to clipboard operation
FedML copied to clipboard

Pip install with simple example

Open yh-yao opened this issue 3 years ago • 2 comments

!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.

yh-yao avatar Sep 07 '22 00:09 yh-yao

@alex-liang-kh please have a look.

chaoyanghe avatar Sep 07 '22 17:09 chaoyanghe

@yh-yao Please try to install new version 0.7.316: pip install fedml.

fedml-alex avatar Sep 08 '22 15:09 fedml-alex

This is fixed.

fedml-dimitris avatar Oct 25 '23 01:10 fedml-dimitris