Currently, Rasa officially supports Python 3.7 to 3.10. Python 3.11 is not yet fully supported.
First install python version between 3.7 and 3.10 , and then retry pip install rasa command
pip install rasa
For additional details, please refer to this. RASA docs