in Ubuntu 24.0.4, I test installing dependencies first, and it works.
after install mininet
git clone https://github.com/faucetsdn/ryu.git
pip install -r tools/pip-requires
cd ryu; pip install .