问题
Unable to run the rasa init command and getting following error: 'rasa' is not recognized as an internal or external command, operable program or batch file.
I have following version of RASA in my environment: rasa-core 0.13.2 rasa-core-sdk 0.12.2 rasa-nlu 0.14.6 rasa-sdk 1.2.0
回答1:
Hopefully you got it working by now, but if not you can either
1) Try setting the Python path in Advanced System Settings > Environment Variables
. (ideally we want it in a top-level folder)
2) Re-install Python using the graphical installer. Run the regular Python installer as administrator. BE SURE to click the little ‘Add to PATH’ checkbox, or all this will be for naught!! (For me personally this is a lot easier than manually adjusting the path in environment variables.) Then choose “Custom install location.” Clicking “Install for all users” should automatically change the install path to the C:Program Files folder.
3) You may also be able to do this without a full reinstall by selecting Programs > Programs and Features > Modify/Repair
.
回答2:
Sams answer is right. Rasa is probably not in your environment variable path.
Have you already tried:
py -m rasa init
or
python -m rasa init
If this doesn't work you may find answers at the rasa community forum
回答3:
Did you try pip based installation as mentioned here
You can do
pip install rasa
If you have already done that I suspect that you need to add rasa in the environment variable PATH Also are you using virtualenv? or conda environment? I would suggest using that to do the installation.
来源:https://stackoverflow.com/questions/59880260/rasa-is-not-recognized-as-an-internal-or-external-command-operable-program-or