Try the following steps (though I have not tested):
- Create production setup using GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
sudo python install.py --production
- Change branch to v9.x.x for both frappe and erpnext repository.
- Create a new site using
bench new-site <your-site-name>
. Donβt use the site created by default.