- Create a virtual environment Run the following command to create a virtual environment named "env" (you can replace "env" with your preferred name):
python -m venv env
- Activate the Virtual Environment: To activate the virtual environment, run:
source env/bin/activate
- Install Packages and Run Your Project: After activating the virtual environment, you can install packages and run your project as usual:
pip install -r requirements.txt
chmod +x run_server.sh
.\run_server.sh
- Deactivate the Virtual Environment: When you're done working in the virtual environment, you can deactivate it using the following command:
deactivate
The virtual environment will be deactivated, and you'll return to the regular Command Prompt.
- Change Directory
FL_System/server
- Check your system ip address and replace the host address in the config_app.py
HOST = ''
- Run
bash server.py
- Change Directory
FL_System/client
- Put the same host address that put on server side in the config_app.py
HOST = ''
- Run
python3 Worker1.py
Note: Repeat the same process for other client as well