First download WSL 2
then you now follow these steps to isntall [Guide] How to install ERPNext v16 on Linux Ubuntu 24.04 (step-by-step instructions)
you may face one or two errors during installation but with AI it can help you , and one of the errors is going to be python environment errors