I solved this problem by downgrading python specifically 3.6.8. However, you can install any version from Python 3.6.x to 3.8.x, and NOT 3.9.
Tips: Don't add variable paths while installing multiple versions of python.
In my case, I had 3.9 python and didn't want to uninstall it because I was a working project on the 3.9 version. If you have the same case, then follow the steps. Otherwise, you can alter step2 : python -m venv project_name\venv
Step 1: Install python from above given ranges. Again, please don't install python 3.9 because it is not currently compatible.
Step 2: Delete the existing virtual environment, if you have already created it while priviously installing the rasa. Make new one
> C:\Users\name\AppData\Local\Programs\Python\Python36\python -m venv project_name\venv
(venv: name of the virtual environment
)
This command allows creating a new virtual environment with python just you installed it through step1. You can check python -m version
Step 3: Activate the environment
> project_name\venv\Scripts\acitvate.bat
Step 4: Finally, start installing the rasa:
> pip install rasa
Step 5:
> rasa init
Note: I wasn't using anaconda. If you are currently using an anaconda environment, please do needful with the above steps.
If you still cannot resolve it, please follow thread or you can post there your specific query.