To install the modules keras_lightning and torch_wnn, navigate to their respective directories and execute the following command: "python setup.py install".